Click or drag to resize

WebSocket Methods

The WebSocket type exposes the following members.

Methods
  NameDescription
Public methodAccept
Accepts the handshake request.
Public methodAcceptAsync
Accepts the handshake request asynchronously.
Public methodClose
Closes the connection.
Public methodClose(CloseStatusCode)
Closes the connection with the specified code.
Public methodClose(UInt16)
Closes the connection with the specified code.
Public methodClose(CloseStatusCode, String)
Closes the connection with the specified code and reason.
Public methodClose(UInt16, String)
Closes the connection with the specified code and reason.
Public methodCloseAsync
Closes the connection asynchronously.
Public methodCloseAsync(CloseStatusCode)
Closes the connection asynchronously with the specified code.
Public methodCloseAsync(UInt16)
Closes the connection asynchronously with the specified code.
Public methodCloseAsync(CloseStatusCode, String)
Closes the connection asynchronously with the specified code and reason.
Public methodCloseAsync(UInt16, String)
Closes the connection asynchronously with the specified code and reason.
Public methodConnect
Establishes a connection.
Public methodConnectAsync
Establishes a connection asynchronously.
Public methodPing
Sends a ping using the WebSocket connection.
Public methodPing(String)
Sends a ping with message using the WebSocket connection.
Public methodSend(Byte)
Sends the specified data using the WebSocket connection.
Public methodSend(FileInfo)
Sends the specified file using the WebSocket connection.
Public methodSend(String)
Sends the specified data using the WebSocket connection.
Public methodSend(Stream, Int32)
Sends the data from the specified stream using the WebSocket connection.
Public methodSendAsync(Byte, ActionBoolean)
Sends the specified data asynchronously using the WebSocket connection.
Public methodSendAsync(FileInfo, ActionBoolean)
Sends the specified file asynchronously using the WebSocket connection.
Public methodSendAsync(String, ActionBoolean)
Sends the specified data asynchronously using the WebSocket connection.
Public methodSendAsync(Stream, Int32, ActionBoolean)
Sends the data from the specified stream asynchronously using the WebSocket connection.
Public methodSetCookie
Sets an HTTP cookie to send with the handshake request.
Public methodSetCredentials
Sets the credentials for the HTTP authentication (Basic/Digest).
Public methodSetProxy
Sets the URL of the HTTP proxy server through which to connect and the credentials for the HTTP proxy authentication (Basic/Digest).
Top
See Also