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:

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:
Returns:
a reference to this, so the API can be used fluently
Type
SockJSHandler

handle(arg0)

Parameters:
Name Type Description
arg0 RoutingContext
Source:

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:
Returns:
a reference to this, so the API can be used fluently
Type
SockJSHandler