src/packages/EmbedIO/IHttpContextImpl.cs
/// <summary>
/// <para>Asynchronously handles a WebSockets opening handshake
/// and returns a newly-created <seealso cref="IWebSocketContext"/> interface.</para>
/// <para>This API supports the EmbedIO infrastructure and is not intended to be used directly from your code.</para>
/// </summary>
/// <param name="requestedProtocols">The requested WebSocket sub-protocols.</param>
/// <param name="acceptedProtocol">The accepted WebSocket sub-protocol,
/// or the empty string is no sub-protocol has been agreed upon.</param>
/// <param name="receiveBufferSize">Size of the receive buffer.</param>
/// <param name="keepAliveInterval">The keep-alive interval.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> used to stop the server.</param>
/// <returns>
/// An <see cref="IWebSocketContext"/> interface.
/// </returns>
Asynchronously handles a WebSockets opening handshake
and returns a newly-created  interface.This API supports the EmbedIO infrastructure and is not intended to be used directly from your code.
Asynchronously handles a WebSockets opening handshake and returns a newly - created interface . This API supports the EmbedIO infrastructure and is not intended to be used directly from your code .
Task<IWebSocketContext> AcceptWebSocketAsync(
            IEnumerable<string> requestedProtocols,
            string acceptedProtocol,
            int receiveBufferSize,
            TimeSpan keepAliveInterval,
            CancellationToken cancellationToken);
Task < IWebSocketContext > AcceptWebSocketAsync ( IEnumerable < string > requestedProtocols , string acceptedProtocol , int receiveBufferSize , TimeSpan keepAliveInterval , CancellationToken cancellationToken ) ;
Asynchronously handles a WebSockets opening handshake
and returns a newly-created  interface.This API supports the EmbedIO infrastructure and is not intended to be used directly from your code.
Asynchronously handles a WebSockets opening handshake and returns a newly - created interface . This API supports the EmbedIO infrastructure and is not intended to be used directly from your code .
None
requestedProtocols
IEnumerable<string>
The requested WebSocket sub-protocols.
The requested WebSocket sub - protocols .
acceptedProtocol
string
The accepted WebSocket sub-protocol,
or the empty string is no sub-protocol has been agreed upon.
The accepted WebSocket sub - protocol or the empty string is no sub - protocol has been agreed upon .
receiveBufferSize
int
Size of the receive buffer.
Size of the receive buffer .
keepAliveInterval
TimeSpan
The keep-alive interval.
The keep - alive interval .
cancellationToken
CancellationToken
A  used to stop the server.
A used to stop the server .