# Class: StompClient

## vertx-stomp-js/stomp_client~ StompClient

#### new StompClient()

  Defines a STOMP client.
  Source:
    - stomp_client.js, line 33

### Methods

#### close()

  Closes the client.
  Source:
    - stomp_client.js, line 95

#### 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:
    - stomp_client.js, line 48

  ##### Returns:

  the current StompClient
  Type
    StompClient

#### options() → {Object}

  Source:
    - stomp_client.js, line 109

  ##### Returns:

  - the client's options.
  - Type
      Object

#### vertx() → {Vertx}

  Source:
    - stomp_client.js, line 123

  ##### Returns:

  - the vert.x instance used by the client.
  - Type
      Vertx