# Class: SockJSHandler

## vertx-web-js/sock_js_handler~ SockJSHandler

#### new SockJSHandler()

  A handler that allows you to handle SockJS connections from clients.

  We currently support version 0.3.3 of the SockJS protocol, which can be found in this tag:

  Source:
    - sock_js_handler.js, line 40

### Methods

#### bridge(bridgeOptions, bridgeEventHandler) → {SockJSHandler}

  Like SockJSHandler#bridge but specifying a handler that will receive bridge events.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `bridgeOptions` | Object | options to configure the bridge with
  `bridgeEventHandler` | function | handler to receive bridge events

  Source:
    - sock_js_handler.js, line 84

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    SockJSHandler

#### handle(arg0)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `arg0` | RoutingContext |

  Source:
    - sock_js_handler.js, line 50

#### socketHandler(handler) → {SockJSHandler}

  Set a SockJS socket handler. This handler will be called with a SockJS socket whenever a SockJS connection is made from a client

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `handler` | function | the handler

  Source:
    - sock_js_handler.js, line 65

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    SockJSHandler