|
| override void | OnOpen () |
| | Called when the WebSocket connection for a session has been established.
|
| |
| override void | OnMessage (MessageEventArgs e) |
| | Called when the WebSocket interface for a session receives a message.
|
| |
| override void | OnError (ErrorEventArgs e) |
| | Called when the WebSocket interface for a session gets an error.
|
| |
| override void | OnClose (CloseEventArgs e) |
| | Called when the WebSocket connection for a session has been closed.
|
| |
|
| WebSocketBehavior () |
| | Initializes a new instance of the WebSocketBehavior class.
|
| |
| void | Close () |
| | Closes the WebSocket connection for a session.
|
| |
| void | Close (ushort code, string reason) |
| | Closes the WebSocket connection for a session with the specified code and reason.
|
| |
| void | Close (CloseStatusCode code, string reason) |
| | Closes the WebSocket connection for a session with the specified code and reason.
|
| |
| void | CloseAsync () |
| | Closes the WebSocket connection for a session asynchronously.
|
| |
| void | CloseAsync (ushort code, string reason) |
| | Closes the WebSocket connection for a session asynchronously with the specified code and reason.
|
| |
| void | CloseAsync (CloseStatusCode code, string reason) |
| | Closes the WebSocket connection for a session asynchronously with the specified code and reason.
|
| |
| virtual void | OnClose (CloseEventArgs e) |
| | Called when the WebSocket connection for a session has been closed.
|
| |
| virtual void | OnError (ErrorEventArgs e) |
| | Called when the WebSocket interface for a session gets an error.
|
| |
| virtual void | OnMessage (MessageEventArgs e) |
| | Called when the WebSocket interface for a session receives a message.
|
| |
| virtual void | OnOpen () |
| | Called when the WebSocket connection for a session has been established.
|
| |
| bool | Ping () |
| | Sends a ping to the client for a session.
|
| |
| bool | Ping (string message) |
| | Sends a ping with the specified message to the client for a session.
|
| |
| void | Send (byte[] data) |
| | Sends the specified data to the client for a session.
|
| |
| void | Send (FileInfo fileInfo) |
| | Sends the specified file to the client for a session.
|
| |
| void | Send (string data) |
| | Sends the specified data to the client for a session.
|
| |
| void | Send (Stream stream, int length) |
| | Sends the data from the specified stream instance to the client for a session.
|
| |
| void | SendAsync (byte[] data, Action< bool > completed) |
| | Sends the specified data to the client for a session asynchronously.
|
| |
| void | SendAsync (FileInfo fileInfo, Action< bool > completed) |
| | Sends the specified file to the client for a session asynchronously.
|
| |
| void | SendAsync (string data, Action< bool > completed) |
| | Sends the specified data to the client for a session asynchronously.
|
| |
| void | SendAsync (Stream stream, int length, Action< bool > completed) |
| | Sends the data from the specified stream instance to the client for a session asynchronously.
|
| |
|
| IPEndPoint | IpEndPoint [get] |
| |
| NameValueCollection | Headers [get] |
| | Gets the HTTP headers for a session.
|
| |
| bool | IsAlive [get] |
| | Gets a value indicating whether the communication is possible for a session.
|
| |
| NameValueCollection | QueryString [get] |
| | Gets the query string for a session.
|
| |
| WebSocketState | ReadyState [get] |
| | Gets the current state of the WebSocket interface for a session.
|
| |
| WebSocketSessionManager | Sessions [get] |
| | Gets the management function for the sessions in the service.
|
| |
| IPrincipal | User [get] |
| | Gets the client information for a session.
|
| |
| System.Net.IPEndPoint | UserEndPoint [get] |
| | Gets the client endpoint for a session.
|
| |
| Func< CookieCollection, CookieCollection, bool > | CookiesValidator [get, set] |
| | Gets or sets the delegate used to validate the HTTP cookies.
|
| |
| bool | EmitOnPing [get, set] |
| | Gets or sets a value indicating whether the message event is emitted when the WebSocket interface for a session receives a ping.
|
| |
| string | ID [get] |
| | Gets the unique ID of a session.
|
| |
| bool | IgnoreExtensions [get, set] |
| | Gets or sets a value indicating whether the WebSocket interface for a session ignores the Sec-WebSocket-Extensions header.
|
| |
| Func< string, bool > | OriginValidator [get, set] |
| | Gets or sets the delegate used to validate the Origin header.
|
| |
| string | Protocol [get, set] |
| | Gets or sets the name of the WebSocket subprotocol for a session.
|
| |
| DateTime | StartTime [get] |
| | Gets the time that a session has started.
|
| |
| string | ID [get] |
| | Gets the unique ID of the session.
|
| |
| DateTime | StartTime [get] |
| | Gets the time that the session has started.
|
| |
| WebSocket | WebSocket [get] |
| | Gets the WebSocket interface for the session.
|
| |
|
IPEndPoint | IpEndPoint [get] |
| |