Class WebSocketHttpContext
- Namespace
- Alis.Core.Network
- Assembly
- Alis.dll
The WebSocket HTTP Context used to initiate a WebSocket handshake
public class WebSocketHttpContext
Inheritance
Inherited Members
Constructors
WebSocketHttpContext(bool, IList<string>, string, string, Stream)
Initialises a new instance of the WebSocketHttpContext class
public WebSocketHttpContext(bool isWebSocketRequest, IList<string> webSocketRequestedProtocols, string httpHeader, string path, Stream stream)
Parameters
isWebSocketRequest
bool-
True if this is a valid WebSocket request
webSocketRequestedProtocols
IList<string>httpHeader
string-
The raw http header extracted from the stream
path
string-
The Path extracted from the http header
stream
Stream-
The stream AFTER the header has already been read
Properties
HttpHeader
The raw http header extracted from the stream
public string HttpHeader { get; }
Property Value
IsWebSocketRequest
True if this is a valid WebSocket request
public bool IsWebSocketRequest { get; }
Property Value
Path
The Path extracted from the http header
public string Path { get; }
Property Value
Stream
The stream AFTER the header has already been read
public Stream Stream { get; }
Property Value
WebSocketRequestedProtocols
Gets the value of the web socket requested protocols
public IList<string> WebSocketRequestedProtocols { get; }