Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed May 29, 2011
1 parent cbac0db commit 28543fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dakee.js
@@ -1,12 +1,13 @@
// rick ip: 192.168.1.142
// towski ip: 192.168.1.25
// Useless one-to-one chat
// Binds a REP socket on 5555
// Connects a REQ socket to IP specified by CLIENT_IP env var

require('tty').setRawMode(true);

var context = require('zeromq')
, req = context.createSocket('req')
, rep = context.createSocket('rep')
, ip = process.env.CLIENT_IP || '192.168.1.25'
, ip = process.env.CLIENT_IP || '127.0.0.1'

var needsAnswer = false
rep.on('message', function(msg) {
Expand Down
4 changes: 4 additions & 0 deletions hutmp.js
@@ -1,3 +1,7 @@
// Syncs dakee.js to all subscribed listeners.
// Binds a PUB socket on 5554
// Connects a SUB socket to IP specified by CLIENT_IP env var.

var zmq = require('zeromq');
var ip = process.env.CLIENT_IP
var fs = require('fs')
Expand Down

0 comments on commit 28543fa

Please sign in to comment.