Skip to content

Commit 750c460

Browse files
committed
Fix sockjs example
1 parent 877b760 commit 750c460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vertx-quickstart/src/main/java/org/acme/extra/SockJsExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public class SockJsExample {
1919

2020
public void init(@Observes Router router) {
2121
SockJSHandler sockJSHandler = SockJSHandler.create(vertx);
22-
sockJSHandler.bridge(new SockJSBridgeOptions()
22+
Router bridge = sockJSHandler.bridge(new SockJSBridgeOptions()
2323
.addOutboundPermitted(new PermittedOptions().setAddress("ticks")));
24-
router.route("/eventbus/*").handler(sockJSHandler);
24+
router.route("/eventbus/*").subRouter(bridge);
2525

2626
AtomicInteger counter = new AtomicInteger();
2727
vertx.setPeriodic(1000,

0 commit comments

Comments
 (0)