Skip to content

blowback/node-nanomsg

 
 

Repository files navigation

nanomsg for node

Install:

npm install nanomsg

check it out:

var nano = require('nanomsg');

var pub = nano.socket('pub');
var sub = nano.socket('sub');

var addr = 'tcp://127.0.0.1:7789'
pub.bind(addr);
sub.connect(addr);

sub.on('message', function (buf) {
	console.log(buf.toString());
	pub.close();
	sub.close();
});

setTimeout(function () {
	pub.send("Hello from nanomsg!");
}, 100);

contributing

Issues and pull requests welcome.

Note: you must git submodule update --init to initialize the nanomsg repository.

license

MIT

About

Node.js binding for nanomsg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 75.4%
  • C++ 16.4%
  • Python 6.9%
  • Ruby 1.3%