TTMSFNCWebsocketClient.Disconnect Method
Closes the connection. When is
True, a close frame is sent first; otherwise the socket is closed immediately. Does nothing when not connected.
API unit family: TMSFNCWebSocketClient
Declaring type: TTMSFNCWebsocketClient
Inherited from: TTMSFNCCustomWebsocketClient
Syntax
procedure Disconnect(ASendClose: Boolean = True);
Parameters
| Name | Description |
|---|---|
ASendClose |
When True, sends a close frame before disconnecting; when False, closes the socket directly. Defaults to True. |