Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Servers.HttpResponseWebSocket

Summary

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

Remarks

Constructor.

Constructors

HttpResponseWebSocket(WebSocket websocket, string subprotocol = null, HttpResponseHeaders headers = null)
Encapsulates a response to an HTTP request that indicates to the client that they should switch to the WebSocket protocol. (see also remarks)

Instance methods

StreamReturns null. Overridden only by HttpResponseContent.

Instance properties

HttpStatusCodeThe HTTP status code. For example, 200 OK, 404 Not Found, 500 Internal Server Error. Default is 200 OK.
stringThe server’s selection of a subprotocol, if the client specified any subprotocols in the request.
WebSocketThe WebSocket implementation to use for the remainder of the connection.