메소드 | 설명 | |
---|---|---|
Error ( string message ) : void |
Calls the OnError method with the specified message.
|
|
OnClose ( CloseEventArgs e ) : void |
Is called when the WebSocket connection has been closed.
|
|
OnError ( ErrorEventArgs e ) : void |
Is called when the inner WebSocket or current WebSocketService gets an error.
|
|
OnMessage ( MessageEventArgs e ) : void |
Is called when the inner WebSocket receives a data frame.
|
|
OnOpen ( ) : void |
Is called when the WebSocket connection has been established.
|
|
Send ( FileInfo file ) : void |
Sends the specified file as a binary data to the client on the current session in the WebSocket service.
|
|
Send ( byte data ) : void |
Sends a binary data to the client on the current session in the WebSocket service.
|
|
Send ( string data ) : void |
Sends a text data to the client on the current session in the WebSocket service.
|
|
SendAsync ( FileInfo file, Action |
Sends the specified file as a binary data asynchronously to the client on the current session in the WebSocket service. This method doesn't wait for the send to be complete. |
|
SendAsync ( System.Stream stream, int length, Action |
Sends a binary data from the specified Stream asynchronously to the client on the current session in the WebSocket service. This method doesn't wait for the send to be complete. |
|
SendAsync ( byte data, Action |
Sends a binary data asynchronously to the client on the current session in the WebSocket service. This method doesn't wait for the send to be complete. |
|
SendAsync ( string data, Action |
Sends a text data asynchronously to the client on the current session in the WebSocket service. This method doesn't wait for the send to be complete. |
|
ValidateCookies ( WebSocketSharp.Net.CookieCollection request, WebSocketSharp.Net.CookieCollection response ) : bool |
Validates the HTTP Cookies used in the WebSocket connection request. This method is called when the inner WebSocket validates the WebSocket connection request. |
|
WebSocketService ( ) : System |
Initializes a new instance of the WebSocketService class.
|
메소드 | 설명 | |
---|---|---|
Start ( WebSocketContext context, |
||
onClose ( object sender, CloseEventArgs e ) : void | ||
onError ( object sender, ErrorEventArgs e ) : void | ||
onMessage ( object sender, MessageEventArgs e ) : void | ||
onOpen ( object sender, |
protected Error ( string message ) : void | ||
message | string |
/// A |
리턴 | void |
protected OnClose ( CloseEventArgs e ) : void | ||
e | CloseEventArgs |
/// A |
리턴 | void |
protected OnError ( ErrorEventArgs e ) : void | ||
e | ErrorEventArgs |
/// An |
리턴 | void |
protected OnMessage ( MessageEventArgs e ) : void | ||
e | MessageEventArgs |
/// A |
리턴 | void |
protected Send ( FileInfo file ) : void | ||
file | FileInfo |
/// A |
리턴 | void |
protected Send ( byte data ) : void | ||
data | byte |
/// An array of |
리턴 | void |
protected Send ( string data ) : void | ||
data | string |
/// A |
리턴 | void |
protected SendAsync ( FileInfo file, Action |
||
file | FileInfo |
/// A |
completed | Action |
/// An Action<bool> delegate that references the method(s) called when
/// the send is complete. A |
리턴 | void |
protected SendAsync ( System.Stream stream, int length, Action |
||
stream | System.Stream |
/// A |
length | int |
/// An |
completed | Action |
/// An Action<bool> delegate that references the method(s) called when
/// the send is complete. A |
리턴 | void |
protected SendAsync ( byte data, Action |
||
data | byte |
/// An array of |
completed | Action |
/// An Action<bool> delegate that references the method(s) called when
/// the send is complete. A |
리턴 | void |
protected SendAsync ( string data, Action |
||
data | string |
/// A |
completed | Action |
/// An Action<bool> delegate that references the method(s) called when
/// the send is complete. A |
리턴 | void |
protected ValidateCookies ( WebSocketSharp.Net.CookieCollection request, WebSocketSharp.Net.CookieCollection response ) : bool | ||
request | WebSocketSharp.Net.CookieCollection |
/// A |
response | WebSocketSharp.Net.CookieCollection |
/// A |
리턴 | bool |