Class: StompClient

vertx-stomp-js/stomp_client~ StompClient

new StompClient()

Defines a STOMP client.
Source:

Methods

close()

Closes the client.
Source:

connect(port, host, net, resultHandler) → {StompClient}

Connects to the server.
Parameters:
Name Type Description
port number the server port
host string the server host
net NetClient the NET client to use
resultHandler function handler called with the connection result
Source:
Returns:
the current StompClient
Type
StompClient

options() → {Object}

Source:
Returns:
  • the client's options.
  • Type
    Object

vertx() → {Vertx}

Source:
Returns:
  • the vert.x instance used by the client.
  • Type
    Vertx