B4J Programming Press on the image to return to the main documentation page.

jWebSocketClient

List of types:

WebSocketClient

WebSocketClient

Implementation of a WebSocket client.

Events:

Connected
Closed (Reason As String)
TextMessage (Message As String)
BinaryMessage (Data() As Byte)

Members:


  Close

  Connect (Url As String)

  Connected As Boolean [read only]

  Initialize (EventName As String)

  SendBinary (Data() As Byte)

  SendText (Text As String)

Members description:

Close
Closes the connection.
Connect (Url As String)
Tries to connect to the given Url. The Url should start with ws:// or wss:// (for SSL)
Connected As Boolean [read only]
Checks whether the connection is open.
Initialize (EventName As String)
Initializes the object and sets the subs that will handle the events.
SendBinary (Data() As Byte)
Sends a binary message.
SendText (Text As String)
Sends a text message.
Top