@ably/chat
Version:
Ably Chat is a set of purpose-built APIs for a host of chat features enabling you to create 1:1, 1:Many, Many:1 and Many:Many chat rooms for any scale. It is designed to meet a wide range of chat use cases, such as livestreams, in-game communication, cust
16 lines (15 loc) • 665 B
text/typescript
/**
* Headers are a flat key-value map that can be attached to chat messages.
*
* The headers are a flat key-value map and are sent as part of the realtime
* message's extras inside the `headers` property. They can serve similar
* purposes as Metadata, but as opposed to Metadata they are read by Ably and
* can be used for features such as
* [subscription filters](https://faqs.ably.com/subscription-filters).
*
* Do not use the headers for authoritative information. There is no
* server-side validation. When reading the headers, treat them like user
* input.
*
*/
export type Headers = Record<string, number | string | boolean | null | undefined>;