Method | Description | |
---|---|---|
Error ( string message, |
Calls the OnError method with the specified message and exception. This method doesn't call the OnError method if message is |
|
OnClose ( CloseEventArgs e ) : void |
Called when the WebSocket connection used in a session has been closed.
|
|
OnError ( |
Called when the WebSocket used in a session gets an error.
|
|
OnMessage ( MessageEventArgs e ) : void |
Called when the WebSocket used in a session receives a message.
|
|
OnOpen ( ) : void |
Called when the WebSocket connection used in a session has been established.
|
|
Send ( |
Sends the specified file as binary data to the client on a session. This method is available after the WebSocket connection has been established. |
|
Send ( byte data ) : void |
Sends binary data to the client on a session. This method is available after the WebSocket connection has been established. |
|
Send ( string data ) : void |
Sends text data to the client on a session. This method is available after the WebSocket connection has been established. |
|
SendAsync ( |
Sends the specified file as binary data asynchronously to the client on a session. This method is available after the WebSocket connection has been established. This method doesn't wait for the send to be complete. |
|
SendAsync ( Stream stream, int length, Action |
Sends binary data from the specified Stream asynchronously to the client on a session. This method is available after the WebSocket connection has been established. This method doesn't wait for the send to be complete. |
|
SendAsync ( byte data, Action |
Sends binary data asynchronously to the client on a session. This method is available after the WebSocket connection has been established. This method doesn't wait for the send to be complete. |
|
SendAsync ( string data, Action |
Sends text data asynchronously to the client on a session. This method is available after the WebSocket connection has been established. This method doesn't wait for the send to be complete. |
|
WebSocketBehavior ( ) : System |
Initializes a new instance of the WebSocketBehavior class.
|
Method | Description | |
---|---|---|
Start ( WebSocketContext context, |
||
checkHandshakeRequest ( WebSocketContext context ) : string | ||
onClose ( object sender, CloseEventArgs e ) : void | ||
onError ( object sender, |
||
onMessage ( object sender, MessageEventArgs e ) : void | ||
onOpen ( object sender, |
protected Error ( string message, |
||
message | string |
/// A |
exception |
/// An |
|
return | void |
protected OnClose ( CloseEventArgs e ) : void | ||
e | CloseEventArgs |
/// A |
return | void |
protected OnError ( |
||
e |
/// A |
|
return | void |
protected OnMessage ( MessageEventArgs e ) : void | ||
e | MessageEventArgs |
/// A |
return | void |
protected Send ( |
||
file |
/// A |
|
return | void |
protected Send ( byte data ) : void | ||
data | byte |
/// An array of |
return | void |
protected Send ( string data ) : void | ||
data | string |
/// A |
return | void |
protected SendAsync ( |
||
file |
/// A |
|
completed | Action |
/// An |
return | void |
protected SendAsync ( Stream stream, int length, Action |
||
stream | Stream |
/// A |
length | int |
/// An |
completed | Action |
/// An |
return | void |
protected SendAsync ( byte data, Action |
||
data | byte |
/// An array of |
completed | Action |
/// An |
return | void |
protected SendAsync ( string data, Action |
||
data | string |
/// A |
completed | Action |
/// An |
return | void |