vertx-eventbus-client

0.0.4 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    3
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i vertx-eventbus-client

Weekly Downloads

6

Version

0.0.4

License

ASL 2.0

Last publish

Collaborators

  • muraken720