Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dnode-ez

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnode-ez

connect event emitters via dnode

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

dnode-ez 2013 rewritten from the ground up.

dnode-ez has been rewritten entirely! an easier interface.

example

client

var ee = require('events').EventEmitter;
var foo = new ee;
var dz = require('dnode-ez');
var client = new dz;
client.route('foo',foo);
client.connect(5004);
client.on('connect',function(remote,conn) {
    foo.emit("bar","The quick brown fox.",function(msg) {
        console.log(msg);
    });
});

server

var ee = require('events').EventEmitter;
var foo = new ee;
var dz = require('dnode-ez');
var server = new dz;
server.route('foo',foo);
foo.on('bar',function(msg,cb) {
    console.log("The message is  "+ msg);
    cb("All done here");
});
server.listen(5004);

1. node server
2. node client
3. // client will connect, and fire "bar" on event foo
4. // on server "bar" will trigger "The message is .."
5. // and the callback will be called with "All done here"
6. // on client that callback will be done,i.e. console.log("All done here")

node-dnode-ez Copyright (c) 2010 David Wee rook2pawn@gmail.com

Free software provided under the MIT License http://opensource.org/licenses/mit-license.php

Keywords

FAQs

Package last updated on 03 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc