IWebSocket.SendClose Method
Sends a close frame in response to a close frame received from the other side, finishing the close handshake without waiting for a response.
Remarks
This method should be used to complete the close handshake when a close frame has been received from the other side.
Syntax
Unit: Sparkle.WebSocket
procedure IWebSocket.SendClose(CloseStatus: Integer; const StatusDescription: string); virtual; abstract;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
CloseStatus | Integer | The status code indicating the reason for closing the connection. |
|
const | StatusDescription | string | An optional description of the closure reason. |