Skip to content

Commit

Permalink
Merge pull request #1345 from cescoffier/fix-sockjs-example
Browse files Browse the repository at this point in the history
Fix sockjs example
  • Loading branch information
cescoffier authored Oct 27, 2023
2 parents 877b760 + 750c460 commit 6af12d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class SockJsExample {

public void init(@Observes Router router) {
SockJSHandler sockJSHandler = SockJSHandler.create(vertx);
sockJSHandler.bridge(new SockJSBridgeOptions()
Router bridge = sockJSHandler.bridge(new SockJSBridgeOptions()
.addOutboundPermitted(new PermittedOptions().setAddress("ticks")));
router.route("/eventbus/*").handler(sockJSHandler);
router.route("/eventbus/*").subRouter(bridge);

AtomicInteger counter = new AtomicInteger();
vertx.setPeriodic(1000,
Expand Down

0 comments on commit 6af12d5

Please sign in to comment.