IWebSocketMessage Interface
Interface representing a WebSocket message, providing access to the message's stream, text, and binary data.
Syntax
Unit: Sparkle.WebSocket
IWebSocketMessage = interface(IInterface);
Methods
Name | Description |
---|---|
Stream | Gets the stream associated with the WebSocket message. |
Text | Gets the text content of the WebSocket message, if the message is of type Text. |
Data | Gets the binary data of the WebSocket message. For Text messages, this will return the UTF-8 encoded bytes of the text. |
GetMessageType | Retrieves the type of the WebSocket message (Text, Binary, or Close). |
Properties
Name | Description |
---|---|
MessageType | The type of the WebSocket message. |