Skip to content

Instantly share code, notes, and snippets.

@yrashk
Created December 18, 2010 23:38
Show Gist options
  • Save yrashk/746973 to your computer and use it in GitHub Desktop.
Save yrashk/746973 to your computer and use it in GitHub Desktop.
var msg = require('messaging');
var mbox = new msg.Mailbox();
if (msg.Node.ping("b2@aero")) {
mbox.send({global: "jsname"}, "Hello, named dude!");
}
var msg = require('messaging');
var mbox = new msg.Mailbox({global: "jsname"});
mbox.on("info",function(msg) { console.log("received info: " + msg); });
$ bjs -norepl -sname b1 test1.js
$ bjs -sname b2 test2.js
beam.js> "received info: Hello, named dude!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment