What are the message classifications or types supported by WebSocket API? (from WebSocket API Web...

...inar Nov 29)

What are the message classifications or types supported by WebSocket API?

Best Answer

  • WebSocket API supports the following types:
    • Ack - used to acknowledge POSTS
    • Close - used to close an open stream
    • Generic - bi-direction generic message with no specific type
    • Post - push content into the TREP cache
    • Refresh - initial response
    • Request - client side request for data
    • Status - server status messages, i.e. login failed, item not found, etc
    • Update - reflects changes in the market
    • Error - invalid usage when making requests

    Refer to the "Message" section within the documentation for a complete list.

    This question was first asked in an Introduction to the Elektron WebSocket API webinar (29th of Nov). Please see here: Introduction to the Elektron WebSocket API