SubscriptionMessage defines a realtime subscription payload.

Example:

onRealtimeConnectRequest((e) => {
e.client.send(new SubscriptionMessage({
name: "example",
data: '{"greeting": "Hello world"}'
}))
})

Hierarchy

Implements

Constructors

Properties

Constructors

Properties

data: string | number[]
name: string

Generated using TypeDoc