Skip to content
Browse files

javascript wrapper for EventBusBridgeListener

  • Loading branch information...
1 parent d7591ee commit 1d55293b6848a08c61f9cdbfb825713b22da474d @Narigo Narigo committed Aug 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 vertx-lang/vertx-lang-rhino/src/main/javascript_scripts/core/sockjs.js
View
4 vertx-lang/vertx-lang-rhino/src/main/javascript_scripts/core/sockjs.js
@@ -43,6 +43,10 @@ if (!vertx.createSockJSServer) {
installApp: function(config, handler) {
jserver.installApp(new org.vertx.java.core.json.JsonObject(JSON.stringify(config)), handler);
},
+ setEventBusBridgeListener: function(bridgeListener) {
+ jserver.setEventBusBridgeListener(new org.vertx.java.core.sockjs.EventBusBridgeListener(bridgeListener));
+ return server;
+ },
bridge: function(config, inboundPermitted, outboundPermitted, authTimeout, authAddress) {
if (typeof authTimeout === 'undefined') {
authTimeout = 5 * 50 * 1000;

0 comments on commit 1d55293

Please sign in to comment.
Something went wrong with that request. Please try again.