HttpListenerContext..::..AcceptWebSocket Method
Accepts a WebSocket connection request.
Namespace:
WebSocketSharp.NetAssembly: 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
Return Value
A HttpListenerWebSocketContext that represents the WebSocket connection request.Exceptions
Exception | Condition |
---|---|
ArgumentException | protocol is empty. -or- protocol contains an invalid character. |