C-DEngine 5.105

HttpListenerContext..::..AcceptWebSocket Method

Accepts a WebSocket connection request.

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

Syntax


public HttpListenerWebSocketContext AcceptWebSocket(
	string protocol
)
Public Function AcceptWebSocket ( _
	protocol As String _
) As HttpListenerWebSocketContext
public:
HttpListenerWebSocketContext^ AcceptWebSocket(
	String^ protocol
)

Parameters

protocol
Type: String
A String that represents the subprotocol used in the WebSocket connection.

Return Value

A HttpListenerWebSocketContext that represents the WebSocket connection request.

Exceptions


ExceptionCondition
ArgumentException

protocol is empty.

-or-

protocol contains an invalid character.