C-DEngine 5.105

WebSocket..::..CloseAsync Method (CloseStatusCode)

Closes the WebSocket connection asynchronously with the specified CloseStatusCode, and releases all associated resources.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void CloseAsync(
	CloseStatusCode code
)
Public Sub CloseAsync ( _
	code As CloseStatusCode _
)
public:
void CloseAsync(
	CloseStatusCode^ code
)

Parameters

code
Type: WebSocketSharp..::..CloseStatusCode
One of the CloseStatusCode enum values, represents the status code indicating the reason for the close.

Remarks


This method doesn't wait for the close to be complete.