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
| WebSocket | websocket |
The WebSocket implementation to use for the remainder of the connection. |
| string | subprotocol |
The server’s selection of a subprotocol, if the client specified any subprotocols in the request. |
| HttpResponseHeaders | headers |
Optional HTTP response headers. |
Remarks
Constructor.