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

# bridge

`abstract 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

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

Like `io.vertx.ext.web.handler.sockjs.SockJSHandler#bridge(BridgeOptions)` 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