TTMSFNCWebSocketConnection.SendClose Method
Sends a close control frame with optional payload data.
API unit family: TMSFNCWebSocketCommon
Declaring type: TTMSFNCWebSocketConnection
Overloads
Overload 1
Sends a close control frame with optional payload data.
procedure SendClose(aData: TBytes = nil); overload;
Parameters
| Name | Description |
|---|---|
aData |
Optional close payload bytes. Defaults to nil. |
Overload 2
Sends a close control frame whose payload is the UTF-8 encoding of the supplied message.
procedure SendClose(aMessage: string); overload;
Parameters
| Name | Description |
|---|---|
aMessage |
Close reason text to send. |