vertx / io.vertx.reactivex.ext.web.handler.sockjs / SockJSHandler / bridge

bridge

open fun bridge(bridgeOptions: 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

bridgeOptions - options to configure the bridge with

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

open fun bridge(bridgeOptions: BridgeOptions, bridgeEventHandler: Handler<BridgeEvent>): SockJSHandler

Like io.vertx.reactivex.ext.web.handler.sockjs.SockJSHandler#bridge but specifying a handler that will receive bridge events.

Parameters

bridgeOptions - options to configure the bridge with

bridgeEventHandler - handler to receive bridge events

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