The ByteSocket type exposes the following members.

Constructors

  NameDescription
Public methodByteSocket
Initializes a new instance of the class com.kaazing.gateway.client.html5.ByteSocket

Methods

  NameDescription
Public methodClose
Closes the full-duplex connection.
Public methodConnect(String)
Connect to a remote ByteSocket server.
Public methodConnect(String, String)
Connect to a remote ByteSocket 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
Send binary data over a ByteSocket connection.
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