Method | Description | |
---|---|---|
Accept ( ) : void |
Accepts the WebSocket handshake request. This method is not available in a client. |
|
AcceptAsync ( ) : void |
Accepts the WebSocket handshake request asynchronously. This method does not wait for the accept to be complete. This method is not available in a client. |
|
Close ( ) : void |
Closes the WebSocket connection, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. |
|
Close ( CloseStatusCode code ) : void |
Closes the WebSocket connection with the specified code, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. |
|
Close ( CloseStatusCode code, string reason ) : void |
Closes the WebSocket connection with the specified code and reason, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. |
|
Close ( ushort code ) : void |
Closes the WebSocket connection with the specified code, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. |
|
Close ( ushort code, string reason ) : void |
Closes the WebSocket connection with the specified code and reason, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. |
|
CloseAsync ( ) : void |
Closes the WebSocket connection asynchronously, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. This method does not wait for the close to be complete. |
|
CloseAsync ( CloseStatusCode code ) : void |
Closes the WebSocket connection asynchronously with the specified code, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. This method does not wait for the close to be complete. |
|
CloseAsync ( CloseStatusCode code, string reason ) : void |
Closes the WebSocket connection asynchronously with the specified code and reason, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. This method does not wait for the close to be complete. |
|
CloseAsync ( ushort code ) : void |
Closes the WebSocket connection asynchronously with the specified code, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. This method does not wait for the close to be complete. |
|
CloseAsync ( ushort code, string reason ) : void |
Closes the WebSocket connection asynchronously with the specified code and reason, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. This method does not wait for the close to be complete. |
|
Connect ( ) : void |
Establishes a WebSocket connection. This method is not available in a server. |
|
ConnectAsync ( ) : void |
Establishes a WebSocket connection asynchronously. This method does not wait for the connect to be complete. This method is not available in a server. |
|
Ping ( ) : bool |
Sends a ping using the WebSocket connection.
|
|
Ping ( string message ) : bool |
Sends a ping with the specified message using the WebSocket connection.
|
|
Send ( |
Sends the specified file as the binary data using the WebSocket connection.
|
|
Send ( Stream stream, int length ) : void |
Sends the specified length of data from the specified stream using the WebSocket connection.
|
|
Send ( byte data ) : void |
Sends the specified data using the WebSocket connection.
|
|
Send ( string data ) : void |
Sends the specified data using the WebSocket connection.
|
|
SendAsync ( |
Sends the specified file as the binary data asynchronously using the WebSocket connection. This method does not wait for the send to be complete. |
|
SendAsync ( Stream stream, int length, Action |
Sends the specified length of data from the specified stream asynchronously using the WebSocket connection. This method does not wait for the send to be complete. |
|
SendAsync ( byte data, Action |
Sends the specified data asynchronously using the WebSocket connection. This method does not wait for the send to be complete. |
|
SendAsync ( string data, Action |
Sends the specified data asynchronously using the WebSocket connection. This method does not wait for the send to be complete. |
|
SetCookie ( |
Sets an HTTP cookie to send with the WebSocket handshake request to the server. This method is not available in a server. |
|
SetCredentials ( string username, string password, bool preAuth ) : void |
Sets a pair of username and password for the HTTP authentication (Basic/Digest). This method is not available in a server. |
|
SetProxy ( string url, string username, string password ) : void |
Sets the HTTP proxy server URL to connect through, and if necessary, a pair of username and password for the proxy server authentication (Basic/Digest). This method is not available in a server. |
|
WebSocket ( string url ) : System |
Initializes a new instance of the WebSocket class with the specified WebSocket URL and subprotocols.
|
Method | Description | |
---|---|---|
CheckParametersForClose ( CloseStatusCode code, string reason, bool client, string &message ) : bool | ||
CheckParametersForClose ( ushort code, string reason, bool client, string &message ) : bool | ||
CheckPingParameter ( string message, byte &bytes ) : string | ||
CheckSendParameter ( |
||
CheckSendParameter ( byte data ) : string | ||
CheckSendParameter ( string data ) : string | ||
CheckSendParameters ( Stream stream, int length ) : string | ||
Close ( |
||
Close ( WebSocketSharp.HttpResponse response ) : void | ||
Close ( HttpStatusCode code ) : void | ||
CreateBase64Key ( ) : string | ||
CreateResponseKey ( string base64Key ) : string | ||
IDisposable ( ) : void |
Closes the WebSocket connection, and releases all associated resources. This method does nothing if the current state of the connection is Closing or Closed. This method closes the connection with status code 1001 (going away). |
|
InternalAccept ( ) : void | ||
Ping ( byte frameAsBytes, System.TimeSpan timeout ) : bool | ||
Send ( Opcode opcode, Stream stream, Stream>.Dictionary |
||
Send ( Opcode opcode, byte data, byte[]>.Dictionary |
||
WebSocket ( ) : System | ||
WebSocket ( |
||
WebSocket ( |
||
accept ( ) : bool | ||
acceptHandshake ( ) : bool | ||
checkHandshakeRequest ( |
||
checkHandshakeResponse ( WebSocketSharp.HttpResponse response, string &message ) : bool | ||
checkIfAvailable ( bool client, bool server, bool connecting, bool open, bool closing, bool closed, string &message ) : bool | ||
checkIfAvailable ( bool connecting, bool open, bool closing, bool closed, string &message ) : bool | ||
checkParametersForSetCredentials ( string username, string password, string &message ) : bool | ||
checkParametersForSetProxy ( string url, string username, string password, string &message ) : bool | ||
checkReceivedFrame ( WebSocketFrame frame, string &message ) : bool | ||
close ( PayloadData payloadData, bool send, bool receive, bool received ) : void | ||
close ( ushort code, string reason ) : void | ||
closeAsync ( PayloadData payloadData, bool send, bool receive, bool received ) : void | ||
closeAsync ( ushort code, string reason ) : void | ||
closeHandshake ( PayloadData payloadData, bool send, bool receive, bool received ) : bool | ||
closeHandshake ( byte frameAsBytes, bool receive, bool received ) : bool | ||
connect ( ) : bool | ||
createExtensions ( ) : string | ||
createHandshakeFailureResponse ( HttpStatusCode code ) : WebSocketSharp.HttpResponse | ||
createHandshakeRequest ( ) : HttpRequest | ||
createHandshakeResponse ( ) : WebSocketSharp.HttpResponse | ||
customCheckHandshakeRequest ( |
||
dequeueFromMessageEventQueue ( ) : |
||
doHandshake ( ) : void | ||
enqueueToMessageEventQueue ( |
||
error ( string message, |
||
fatal ( string message, CloseStatusCode code ) : void | ||
fatal ( string message, |
||
init ( ) : void | ||
message ( ) : void | ||
messagec ( MessageEventArgs e ) : void | ||
messages ( MessageEventArgs e ) : void | ||
open ( ) : void | ||
ping ( byte data ) : bool | ||
processCloseFrame ( WebSocketFrame frame ) : bool | ||
processCookies ( CookieCollection cookies ) : void | ||
processDataFrame ( WebSocketFrame frame ) : bool | ||
processFragmentFrame ( WebSocketFrame frame ) : bool | ||
processPingFrame ( WebSocketFrame frame ) : bool | ||
processPongFrame ( WebSocketFrame frame ) : bool | ||
processReceivedFrame ( WebSocketFrame frame ) : bool | ||
processSecWebSocketExtensionsClientHeader ( string value ) : void | ||
processSecWebSocketExtensionsServerHeader ( string value ) : void | ||
processSecWebSocketProtocolHeader ( IEnumerable |
||
processUnsupportedFrame ( WebSocketFrame frame ) : bool | ||
releaseClientResources ( ) : void | ||
releaseCommonResources ( ) : void | ||
releaseResources ( ) : void | ||
releaseServerResources ( ) : void | ||
send ( Fin fin, Opcode opcode, byte data, bool compressed ) : bool | ||
send ( Opcode opcode, Stream stream ) : bool | ||
send ( Opcode opcode, Stream stream, bool compressed ) : bool | ||
sendAsync ( Opcode opcode, Stream stream, Action |
||
sendBytes ( byte bytes ) : bool | ||
sendHandshakeRequest ( ) : HttpResponse | ||
sendHttpRequest ( HttpRequest request, int millisecondsTimeout ) : HttpResponse | ||
sendHttpResponse ( HttpResponse response ) : bool | ||
sendProxyConnectRequest ( ) : void | ||
setClientStream ( ) : void | ||
startReceiving ( ) : void | ||
validateSecWebSocketAcceptHeader ( string value ) : bool | ||
validateSecWebSocketExtensionsClientHeader ( string value ) : bool | ||
validateSecWebSocketExtensionsServerHeader ( string value ) : bool | ||
validateSecWebSocketKeyHeader ( string value ) : bool | ||
validateSecWebSocketProtocolClientHeader ( string value ) : bool | ||
validateSecWebSocketProtocolServerHeader ( string value ) : bool | ||
validateSecWebSocketVersionClientHeader ( string value ) : bool | ||
validateSecWebSocketVersionServerHeader ( string value ) : bool |
public Close ( CloseStatusCode code ) : void | ||
code | CloseStatusCode |
/// One of the |
return | void |
public Close ( CloseStatusCode code, string reason ) : void | ||
code | CloseStatusCode |
/// One of the |
reason | string |
/// A |
return | void |
public Close ( ushort code ) : void | ||
code | ushort |
/// A |
return | void |
public Close ( ushort code, string reason ) : void | ||
code | ushort |
/// A |
reason | string |
/// A |
return | void |
public CloseAsync ( CloseStatusCode code ) : void | ||
code | CloseStatusCode |
/// One of the |
return | void |
public CloseAsync ( CloseStatusCode code, string reason ) : void | ||
code | CloseStatusCode |
/// One of the |
reason | string |
/// A |
return | void |
public CloseAsync ( ushort code ) : void | ||
code | ushort |
/// A |
return | void |
public CloseAsync ( ushort code, string reason ) : void | ||
code | ushort |
/// A |
reason | string |
/// A |
return | void |
public Ping ( string message ) : bool | ||
message | string |
/// A |
return | bool |
public Send ( |
||
fileInfo |
/// A |
|
return | void |
public Send ( Stream stream, int length ) : void | ||
stream | Stream |
/// A |
length | int |
/// An |
return | void |
public Send ( byte data ) : void | ||
data | byte |
/// An array of |
return | void |
public Send ( string data ) : void | ||
data | string |
/// A |
return | void |
public SendAsync ( |
||
fileInfo |
/// A |
|
completed | Action |
/// An |
return | void |
public SendAsync ( Stream stream, int length, Action |
||
stream | Stream |
/// A |
length | int |
/// An |
completed | Action |
/// An |
return | void |
public SendAsync ( byte data, Action |
||
data | byte |
/// An array of |
completed | Action |
/// An |
return | void |
public SendAsync ( string data, Action |
||
data | string |
/// A |
completed | Action |
/// An |
return | void |
public SetCookie ( |
||
cookie |
/// A |
|
return | void |
public SetCredentials ( string username, string password, bool preAuth ) : void | ||
username | string |
/// |
password | string |
/// A |
preAuth | bool |
/// |
return | void |
public SetProxy ( string url, string username, string password ) : void | ||
url | string |
/// |
username | string |
/// |
password | string |
/// A |
return | void |
public WebSocket ( string url ) : System | ||
url | string |
/// A |
return | System |