headers

abstract val headers: MessageHeaders

The headers of a chat message. Headers enable attaching extra info to a message, which can be used for various features such as linking to a relative point in time of a livestream video or flagging this message as important or pinned.

Headers are part of the Ably realtime message extras.headers and they can be used for Filtered Subscriptions and similar.

This value is always set. If there are no headers, this is an empty object.

Do not use the headers for authoritative information. There is no server-side validation. When reading the headers treat them like user input.