The type property is used to determine the shape of the data property of the update event.
enum MessageEventType
deposits events provide a specialized data property which is similar to KumaDeposit with the following changes:
depositId, quantity, asset, and time are provided from the KumaDeposit interface.deposits events include additional exclusive properties:
type KumaDepositEventData
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.Kuma<name>Eventinterface will document its provideddatashape and properties.subscriptionsproperty when dispatched.See
data KumaDepositEventData