WebSocket Members
The WebSocket type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| 
                         | 
                      WebSocket(String, array<String>[]()[][]) | 
                         
   Initializes a new instance of the WebSocket class with
   the specified WebSocket URL and subprotocols.
    
                       | 
                    
Methods
| Name | Description | |
|---|---|---|
| 
                         | 
                      Accept | 
                         
   Accepts the WebSocket connection request.
    
                       | 
                    
| 
                         | 
                      AcceptAsync | 
                         
   Accepts the WebSocket connection request asynchronously.
    
                       | 
                    
| 
                         | 
                      Close()()()() | 
                         
   Closes the WebSocket connection, and releases all associated resources.
    
                       | 
                    
| 
                         | 
                      Close(UInt16) | 
                         
   Closes the WebSocket connection with the specified UInt16,
   and releases all associated resources.
    
                       | 
                    
| 
                         | 
                      Close(CloseStatusCode) | 
                         
   Closes the WebSocket connection with the specified CloseStatusCode,
   and releases all associated resources.
    
                       | 
                    
| 
                         | 
                      Close(UInt16, String) | |
| 
                         | 
                      Close(CloseStatusCode, String) | 
                         
   Closes the WebSocket connection with the specified CloseStatusCode and
   String, and releases all associated resources.
    
                       | 
                    
| 
                         | 
                      CloseAsync()()()() | 
                         
   Closes the WebSocket connection asynchronously, and releases all associated resources.
    
                       | 
                    
| 
                         | 
                      CloseAsync(UInt16) | 
                         
   Closes the WebSocket connection asynchronously with the specified UInt16,
   and releases all associated resources.
    
                       | 
                    
| 
                         | 
                      CloseAsync(CloseStatusCode) | 
                         
   Closes the WebSocket connection asynchronously with the specified
   CloseStatusCode, and releases all associated resources.
    
                       | 
                    
| 
                         | 
                      CloseAsync(UInt16, String) | |
| 
                         | 
                      CloseAsync(CloseStatusCode, String) | 
                         
   Closes the WebSocket connection asynchronously with the specified
   CloseStatusCode and String, and releases
   all associated resources.
    
                       | 
                    
| 
                         | 
                      Connect | 
                         
   Establishes a WebSocket connection.
    
                       | 
                    
| 
                         | 
                      ConnectAsync | 
                         
   Establishes a WebSocket connection asynchronously.
    
                       | 
                    
| 
                         | 
                      Equals(System.Object) | (Inherited from Object.) | 
| 
                         | 
                      Finalize | (Inherited from Object.) | 
| 
                         | 
                      GetHashCode | (Inherited from Object.) | 
| 
                         | 
                      GetType | (Inherited from Object.) | 
| 
                         | 
                      MemberwiseClone | (Inherited from Object.) | 
| 
                         | 
                      Ping()()()() | 
                         
   Sends a ping using the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      Ping(String) | 
                         
   Sends a ping with the specified message using the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      Send(array<Byte>[]()[][]) | 
                         
   Sends binary data using the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      Send(FileInfo) | 
                         
   Sends the specified file as binary data using the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      Send(String) | 
                         
   Sends text data using the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      SendAsync(array<Byte>[]()[][], Action<(Of <<'(Boolean>)>>)) | 
                         
   Sends binary data asynchronously using the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      SendAsync(FileInfo, Action<(Of <<'(Boolean>)>>)) | 
                         
   Sends the specified file as binary data asynchronously using
   the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      SendAsync(String, Action<(Of <<'(Boolean>)>>)) | 
                         
   Sends text data asynchronously using the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      SendAsync(Stream, Int32, Action<(Of <<'(Boolean>)>>)) | 
                         
   Sends binary data from the specified Stream asynchronously using
   the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      SetCookie | 
                         
   Sets an HTTP cookie to send with
   the WebSocket connection request to the server.
    
                       | 
                    
| 
                         | 
                      SetCredentials | 
                         
   Sets a pair of username and password for
   the HTTP authentication (Basic/Digest).
    
                       | 
                    
| 
                         | 
                      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).
    
                       | 
                    
| 
                         | 
                      ToString | (Inherited from Object.) | 
Properties
| Name | Description | |
|---|---|---|
| 
                         | 
                      Compression | 
                         
   Gets or sets the compression method used to compress a message on the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      Cookies | 
                         
   Gets the HTTP cookies included in the WebSocket connection request and response.
    
                       | 
                    
| 
                         | 
                      Credentials | 
                         
   Gets the credentials for the HTTP authentication (Basic/Digest).
    
                       | 
                    
| 
                         | 
                      EmitOnPing | |
| 
                         | 
                      EnableRedirection | 
                         
   Gets or sets a value indicating whether the WebSocket redirects
   the connection request to the new URL located in the connection response.
    
                       | 
                    
| 
                         | 
                      Extensions | 
                         
   Gets the WebSocket extensions selected by the server.
    
                       | 
                    
| 
                         | 
                      IsAlive | 
                         
   Gets a value indicating whether the WebSocket connection is alive.
    
                       | 
                    
| 
                         | 
                      IsSecure | 
                         
   Gets a value indicating whether the WebSocket connection is secure.
    
                       | 
                    
| 
                         | 
                      Log | 
                         
   Gets the logging functions.
    
                       | 
                    
| 
                         | 
                      Origin | 
                         
   Gets or sets the value of the HTTP Origin header to send with
   the WebSocket connection request to the server.
    
                       | 
                    
| 
                         | 
                      Protocol | 
                         
   Gets the WebSocket subprotocol selected by the server.
    
                       | 
                    
| 
                         | 
                      ReadyState | 
                         
   Gets the state of the WebSocket connection.
    
                       | 
                    
| 
                         | 
                      SslConfiguration | 
                         
   Gets or sets the SSL configuration used to authenticate the server and
   optionally the client for secure connection.
    
                       | 
                    
| 
                         | 
                      Url | 
                         
   Gets the WebSocket URL used to connect, or accepted.
    
                       | 
                    
| 
                         | 
                      WaitTime | 
                         
   Gets or sets the wait time for the response to the Ping or Close.
    
                       |