IWebSocket.ReceiveFrame Method
Receives a WebSocket frame from the connection. Allows receiving individual frames with control over fragmentation.
Remarks
This method provides lower-level control over WebSocket communication by allowing the receiving 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
function IWebSocket.ReceiveFrame(var Buffer: ; Count: Integer): TWebSocketReceiveResult; virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
var | Buffer | The buffer to store the received data. |
|
Count | Integer | The maximum number of bytes to receive. |
Returns
A result containing information about the received frame.