Class: SockJSHandler

vertx-apex-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) → {SockJSHandler}

Bridge the SockJS handler to the Vert.x event bus. This basically installs a built-in SockJS socket handler which takes SockJS traffic and bridges it to the event bus, thus allowing you to extend the server-side Vert.x event bus to browsers
Parameters:
Name Type Description
bridgeOptions Object options to configure the bridge with
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