The WebSocket type exposes the following members.

Constructors

  NameDescription
Public methodWebSocket
Initializes a new instance of the com.kaazing.gateway.client.html5.WebSocket class.

Methods

  NameDescription
Public methodClose
Closes the full-duplex connection.
Public methodConnect(String)
Connect to a remote WebSocket server.
Public methodConnect(String, String)
Connect to a remote WebSocket server.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSend
Sends text-based data to the remote socket location.
Public methodToString (Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberCLOSED
ReadyState status when connection has been closed.
Public fieldStatic memberCONNECTING
ReadyState status while attempting to establish a connection
Public fieldStatic memberOPEN
ReadyState status while connection is open.

Properties

  NameDescription
Public propertyBufferedAmount
The number of bytes that are queued to send.
Public propertyConnectTimeout
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.
Public propertyReadyState
The current connection state.
Public propertyURL
The URL with which the WebSocket was constructed.

Events

  NameDescription
Public eventCloseEvent
Occurs when the connection has closed.
Public eventMessageEvent
Occurs when a message has been received.
Public eventOpenEvent
Occurs when the connection has opened.

See Also