Type alias Payload

Payload: string | Record<string, unknown> | ArrayBuffer | ArrayBufferView

Valid types for a PUBLISH packet's payload

While the payload as input can be one of several types, the payload as output (via message receipt) will always be an ArrayBuffer of binary data.

Generated using TypeDoc