Search in sources :

Example 1 with SockJSHandler

use of io.vertx.rxjava.ext.web.handler.sockjs.SockJSHandler in project vertx-openshift-it by cescoffier.

the class GreetingServiceVerticle method getSockJsHandler.

private Handler<RoutingContext> getSockJsHandler() {
    SockJSHandler sockJSHandler = SockJSHandler.create(vertx);
    BridgeOptions options = new BridgeOptions();
    options.addInboundPermitted(new PermittedOptions().setAddress("circuit-breaker"));
    options.addOutboundPermitted(new PermittedOptions().setAddress("circuit-breaker"));
    return sockJSHandler.bridge(options);
}
Also used : BridgeOptions(io.vertx.ext.web.handler.sockjs.BridgeOptions) PermittedOptions(io.vertx.ext.web.handler.sockjs.PermittedOptions) SockJSHandler(io.vertx.rxjava.ext.web.handler.sockjs.SockJSHandler)

Aggregations

BridgeOptions (io.vertx.ext.web.handler.sockjs.BridgeOptions)1 PermittedOptions (io.vertx.ext.web.handler.sockjs.PermittedOptions)1 SockJSHandler (io.vertx.rxjava.ext.web.handler.sockjs.SockJSHandler)1