Class IWebSocketMessage

Inheritance Relationships

Derived Types

Class Documentation

class IWebSocketMessage

Provides an interface for a WebSocket message.

Subclassed by axr::sdk::net::OutgoingWebSocketMessage, axr::sdk::net::WsppWebSocketMessage

Public Functions

virtual std::vector<uint8_t> GetData() const = 0

Returns the message’s data as a buffer. Use this method to access message data for outgoing messages.

virtual utility::string_t GetString() const = 0

Returns the message’s data as a string. Use this method to access message data for outgoing messages.

virtual WebSocketMessageType GetType() const = 0

Returns the type of message being represented.

virtual pplx::task<std::vector<uint8_t>> ExtractData() const = 0

Extracts the message’s data stream as a buffer. Use this method to access message data for incoming messages.

virtual pplx::task<utility::string_t> ExtractString() const = 0

Extracts the message’s data stream as a string. Use this method to access message data for incoming messages.