Skip to content
vert.x eventbus client for node.js
JavaScript Java
Latest commit c704009 Aug 6, 2015 @muraken720 Merge pull request #3 from harryjoy/node-0.12
Updated jsdom and sockjs-client-node to support NodeJS version 0.12.

README.md

vertx-eventbus-client

This is a vert.x 2.1 eventbus client library for node.js.

Installation

npm install vertx-eventbus-client

API

var vertx = require('vertx-eventbus-client');

var eb = new vertx.EventBus('http://localhost:8080/eventbus');

eb.onopen = function() {
  console.log('eb.onopen start.');
  eb.send('some-address', {'action': 'say', 'message': 'Hello World!'}, function(reply) {
    console.log("receive message: " + JSON.stringify(reply));
  });
};

TEST

ServerSide(vert.x):

vertx run test/VertxEventBusServer.java

ClientSide(node.js):

node test/node-client.js

LICENSE

ASL 2.0

Something went wrong with that request. Please try again.