Skip to content

Commit

Permalink
working push, pull, and subscribe using axon
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephenitis committed Jun 20, 2013
1 parent 7a40aa6 commit 2af644b
Show file tree
Hide file tree
Showing 51 changed files with 3,032 additions and 0 deletions.
32 changes: 32 additions & 0 deletions node-program.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
var axon = require('axon')
, sock = axon.socket('pull');
sock.bind(3000);
// sock.connect(3000);

sock.on('message', function(msg){
console.log("************************************");
console.log(msg.toString());
});


var axon = require('axon')
, sockPush = axon.socket('push');

sockPush.connect('tcp://000.000.0.000:3000');
console.log('push server started');

setInterval(function(){
sockPush.send();
console.log("************************************");
console.log("omgz STEPHEN IS PUSHING")
}, 500);

var axon = require('axon')
, sockSub = axon.socket('sub');

sockSub.connect("tcp://000.000.0.00:3000");

sockSub.on('message', function(msg){
console.log("************************************");
console.log(msg.toString());
});
4 changes: 4 additions & 0 deletions node_modules/axon/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

131 changes: 131 additions & 0 deletions node_modules/axon/History.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions node_modules/axon/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2af644b

Please sign in to comment.