UNPKG

@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

13 lines (12 loc) 509 B
/** * Metadata is a map of extra information that can be attached to chat * messages. It is not used by Ably and is sent as part of the realtime * message payload. Example use cases are setting custom styling like * background or text colors or fonts, adding links to external images, * emojis, etc. * * Do not use metadata for authoritative information. There is no server-side * validation. When reading the metadata, treat it like user input. * */ export type Metadata = Record<string, unknown>;