C-DEngine 5.105

WebSocket Methods

The WebSocket type exposes the following members.

Methods


  Name Description
Public method Accept
Accepts the WebSocket connection request.
Public method AcceptAsync
Accepts the WebSocket connection request asynchronously.
Public method Close()()()()
Closes the WebSocket connection, and releases all associated resources.
Public method Close(UInt16)
Closes the WebSocket connection with the specified UInt16, and releases all associated resources.
Public method Close(CloseStatusCode)
Closes the WebSocket connection with the specified CloseStatusCode, and releases all associated resources.
Public method Close(UInt16, String)
Closes the WebSocket connection with the specified UInt16 and String, and releases all associated resources.
Public method Close(CloseStatusCode, String)
Closes the WebSocket connection with the specified CloseStatusCode and String, and releases all associated resources.
Public method CloseAsync()()()()
Closes the WebSocket connection asynchronously, and releases all associated resources.
Public method CloseAsync(UInt16)
Closes the WebSocket connection asynchronously with the specified UInt16, and releases all associated resources.
Public method CloseAsync(CloseStatusCode)
Closes the WebSocket connection asynchronously with the specified CloseStatusCode, and releases all associated resources.
Public method CloseAsync(UInt16, String)
Closes the WebSocket connection asynchronously with the specified UInt16 and String, and releases all associated resources.
Public method CloseAsync(CloseStatusCode, String)
Closes the WebSocket connection asynchronously with the specified CloseStatusCode and String, and releases all associated resources.
Public method Connect
Establishes a WebSocket connection.
Public method ConnectAsync
Establishes a WebSocket connection asynchronously.
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Ping()()()()
Sends a ping using the WebSocket connection.
Public method Ping(String)
Sends a ping with the specified message using the WebSocket connection.
Public method Send(array<Byte>[]()[][])
Sends binary data using the WebSocket connection.
Public method Send(FileInfo)
Sends the specified file as binary data using the WebSocket connection.
Public method Send(String)
Sends text data using the WebSocket connection.
Public method SendAsync(array<Byte>[]()[][], Action<(Of <<'(Boolean>)>>))
Sends binary data asynchronously using the WebSocket connection.
Public method SendAsync(FileInfo, Action<(Of <<'(Boolean>)>>))
Sends the specified file as binary data asynchronously using the WebSocket connection.
Public method SendAsync(String, Action<(Of <<'(Boolean>)>>))
Sends text data asynchronously using the WebSocket connection.
Public method SendAsync(Stream, Int32, Action<(Of <<'(Boolean>)>>))
Sends binary data from the specified Stream asynchronously using the WebSocket connection.
Public method SetCookie
Sets an HTTP cookie to send with the WebSocket connection request to the server.
Public method SetCredentials
Sets a pair of username and password for the HTTP authentication (Basic/Digest).
Public method SetProxy
Sets an HTTP proxy server URL to connect through, and if necessary, a pair of username and password for the proxy server authentication (Basic/Digest).
Public method ToString (Inherited from Object.)