The type property is used to determine the shape of the data property of the update event.
enum MessageEventType
Optional
cidIf the request provided a cid
parameter, the response will include the cid
provided.
Optional
dataThe data object will change based on the type of the message.
Optional
subscriptionsA list of all active subscriptions if the type
is subscriptions
subscription
Websocket messages always include a type property which dictates the shape of itsdata
property.type
will be the name of the subscription that the message correlates to.subscriptions
property when dispatched.See
enum MessageEventType