ws-direct
is your primary connection, we recommend using ws-feed
as a failover.type
attribute that can be used to handle the message appropriately.
subscribe
message to the server indicating which channels and products to receive. This message is mandatory—you are disconnected if no subscribe
has been received within 5 seconds.
subscribe
message or you are disconnected in 5 seconds.subscriptions
message as a response to an subscribe
message.
unsubscribe
message. The structure is equivalent to subscribe
messages.
subscriptions
message as a response to an unsubscribe
message.
subscriptions
message is sent in response to both subscribe and unsubscribe messages.
In response to a subscribe
message, the subscriptions
message lists all channels you are subscribed to. Subsequent subscribe messages add to the list of subscriptions. If you subscribed to a channel without being authenticated, you will remain in the unauthenticated channel.