Click or drag to resize

HttpListenerContextAcceptWebSocket Method

Accepts a WebSocket handshake request.

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public HttpListenerWebSocketContext AcceptWebSocket(
	string protocol
)

Parameters

protocol
Type: SystemString
A String that represents the subprotocol supported on this WebSocket connection.

Return Value

Type: HttpListenerWebSocketContext
A HttpListenerWebSocketContext that represents the WebSocket handshake request.
Exceptions
ExceptionCondition
ArgumentException

protocol is empty.

-or-

protocol contains an invalid character.

InvalidOperationException This method has already been called.
See Also