procedure Close; overload;

procedure Close(Status: TScWebSocketCloseStatus; const Description: string = ''); overload;

 

Description

Call Close to close a connection to a Web server. When calling this method, a Close control message is sent to the server and a response from the server is expected.

When executed successfully, the Close method sets the State property to the sClose value.

The Status parameter holds a value that indicates the reason for closing a connection. The CloseStatus property is set from the value of this parameter.

The Description parameter holds a string that describes a reason for closing a connection. The CloseStatusDescription property is set from the value of this parameter.

These values are sent to the server in the Close control message.

When calling the method without parameters, CloseStatus is set to csNormalClosure.

 

See Also

Connect

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support