‚̧Nerdiest Precious Modules
    Have ideas to improve npm?Join in the discussion! ¬Ľ

    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

    Install

    npm i vertx-eventbus-client

    DownloadsWeekly Downloads

    0

    Version

    0.0.4

    License

    ASL 2.0

    Last publish

    Collaborators

    • avatar