C-DEngine 5.105

WebSocketSessionManager..::..CloseSession Method (String, CloseStatusCode, String)

Closes the session with the specified id, code, and reason.

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

Syntax


public void CloseSession(
	string id,
	CloseStatusCode code,
	string reason
)
Public Sub CloseSession ( _
	id As String, _
	code As CloseStatusCode, _
	reason As String _
)
public:
void CloseSession(
	String^ id, 
	CloseStatusCode^ code, 
	String^ reason
)

Parameters

id
Type: String
A String that represents the ID of the session to close.
code
Type: WebSocketSharp..::..CloseStatusCode
One of the CloseStatusCode enum values, represents the status code indicating the reason for the close.
reason
Type: String
A String that represents the reason for the close.