The WebSocket type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| WebSocket |
Initializes a new instance of the com.kaazing.gateway.client.html5.WebSocket class.
|
Methods
| Name | Description | |
|---|---|---|
| Close |
Closes the full-duplex connection.
| |
| Connect(String) |
Connect to a remote WebSocket server.
| |
| Connect(String, String) |
Connect to a remote WebSocket server.
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| Send |
Sends text-based data to the remote socket location.
| |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| CLOSED |
ReadyState status when connection has been closed.
| |
| CONNECTING |
ReadyState status while attempting to establish a connection
| |
| OPEN |
ReadyState status while connection is open.
|
Properties
| Name | Description | |
|---|---|---|
| BufferedAmount |
The number of bytes that are queued to send.
| |
| ConnectTimeout |
Connect timeout in milliseconds. The timeout will expire if
there is no exchange of packets(for example, 100% packet loss) while
establishing the connection. A timeout value of zero indicates
no timeout.
| |
| DisableLongPolling |
set this property to disable fallback to long polling mode.
default value is false.
| |
| ReadyState |
The current connection state.
| |
| URL |
The URL with which the WebSocket was constructed.
|
Events
| Name | Description | |
|---|---|---|
| CloseEvent |
Occurs when the connection has closed.
| |
| MessageEvent |
Occurs when a message has been received.
| |
| OpenEvent |
Occurs when the connection has opened.
|