Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: HttpResponseWebSocket WebSocket(WebSocket, string, HttpResponseHeaders)

Declaration

public static HttpResponseWebSocket WebSocket(
    WebSocket websocket,
    string subprotocol = null,
    HttpResponseHeaders headers = null
)

Summary

Returns an HttpResponseWebSocket which indicates to the client that the HTTP connection should switch to the WebSocket protocol.

Parameters

WebSocketwebsocket The HttpResponse.WebSocket(WebSocket, string, HttpResponseHeaders) implementation to use for the remainder of the connection.
stringsubprotocol The server’s selection of a subprotocol, if the client specified any subprotocols in the request.
HttpResponseHeadersheaders Optional HTTP response headers.