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
subscriptionWebsocket messages always include a type property which dictates the shape of itsdataproperty.typewill be the name of the subscription that the message correlates to.subscriptionsproperty when dispatched.See
enum MessageEventType