Table of Contents

IWebSocket.Close Method

Initiates the WebSocket close handshake by sending a close frame and waiting for the other side to acknowledge with its own close frame.

Syntax

Unit: Sparkle.WebSocket

procedure IWebSocket.Close(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.

See also