Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: HttpResponseWebSocket(WebSocket, string, HttpResponseHeaders)

Declaration

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

Summary

Encapsulates a response to an HTTP request that indicates to the client that they should switch to the WebSocket protocol.

Parameters

WebSocketwebsocket The WebSocket 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.

Remarks

Constructor.