Class OutgoingWebSocketMessage

Inheritance Relationships

Base Type

Class Documentation

class OutgoingWebSocketMessage : public axr::sdk::net::IWebSocketMessage

Defines an outgoing message to be sent to a WebSocket connection.

Public Functions

inline OutgoingWebSocketMessage(std::variant<utility::string_t, std::vector<uint8_t>> value)
inline virtual ~OutgoingWebSocketMessage()
inline virtual std::vector<uint8_t> GetData() const override

Returns the message’s data as a buffer.

inline virtual utility::string_t GetString() const override

Returns the message’s data as a string.

inline virtual WebSocketMessageType GetType() const override

Returns the type of message being represented.

inline virtual pplx::task<std::vector<uint8_t>> ExtractData() const override

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

inline virtual pplx::task<utility::string_t> ExtractString() const override

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