title: Deprecated Vertx Bridge PermittedOptions
body: <p>I already was able to expose the <strong>Vert.x EventBus</strong> through a socket regarding the official docs:</p>
  
  <p><a href="https://vertx.io/docs/vertx-sockjs-service-proxy/java/" rel="nofollow noreferrer">https://vertx.io/docs/vertx-sockjs-service-proxy/java/</a></p>
  
  <p>The purpose is to interact with a <strong>NodeJS</strong> App. For initial tests, the messages are already working between normal <em>Verticals</em> and the Node App</p>
  
  <p>However, I can see that the class  <strong>io.vertx.ext.web.handler.sockjs.PermittedOptions</strong> is already Deprecated.</p>
  
  <p>This is the snippet </p>
  
  <pre><code>import io.vertx.ext.web.Router;
  import io.vertx.ext.web.handler.sockjs.BridgeOptions;
  import io.vertx.ext.web.handler.sockjs.PermittedOptions;
  import io.vertx.ext.web.handler.sockjs.SockJSHandler;
  
  .
  .
  .
  
  Router router = Router.router(vertx);
  
  BridgeOptions opts = new BridgeOptions()
                            .addInboundPermitted(new PermittedOptions().setAddress("nodetest"))
                            .addOutboundPermitted(new PermittedOptions().setAddress("nodetest"));
  
  router.mountSubRouter("/eventbus", SockJSHandler.create(vertx).bridge(opts));
  
  vertx.createHttpServer().requestHandler(router).listen(3000, res -&gt; {
        if (res.succeeded())
          promise.complete();
        else
          promise.fail(res.cause());
      });
  .
  .
  .
  </code></pre>
  
  <p>¿What is the right way to proceed? </p>