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);
}
Aggregations