IWebSocket.SendFrame Method
Sends a WebSocket frame to the connection. Allows sending individual frames with control over fragmentation.
Remarks
This method provides lower-level control over WebSocket communication by allowing the sending of individual frames. It should not be used together with the Send/Receive methods unless a full message has been completed (e.g., all frames have been sent or received).
Syntax
Unit: Sparkle.WebSocket
procedure IWebSocket.SendFrame(const Buffer: ; Count: Integer; MessageType: TWebSocketMessageType; EndOfMessage: Boolean); virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | Buffer | The data buffer to send. |
|
Count | Integer | The number of bytes to send. |
|
MessageType | TWebSocketMessageType | The type of the message (Text, Binary, or Close). |
|
EndOfMessage | Boolean | Specifies whether this is the final frame of the message. |