Method AcceptWebSocketAsync
AcceptWebSocketAsync(string?)
Accepts a WebSocket connection asynchronously.
public abstract Task<HttpServerEngineWebSocket> AcceptWebSocketAsync(string? subProtocol)
Parameters
subProtocol
stringThe subprotocol to use for the WebSocket connection.
Returns
- Task<HttpServerEngineWebSocket>
A Task<TResult> representing the asynchronous operation. The result contains the HttpServerEngineWebSocket.