Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates, circular test passes, self-referential fails

  • Loading branch information...
commit 28a470f339908b58dedcc860a0b9d60be10cfc86 1 parent 26bd87b
@substack authored
View
2  examples/simple/client.js
@@ -2,7 +2,7 @@ var dnode = require('dnode');
dnode.connect(7070, function (remote, conn) {
remote.zing(33, function (n) {
- console.log('n = ' + n);
+ console.log('n=' + n);
conn.end();
});
});
View
4 examples/simple/server.js
@@ -1,6 +1,6 @@
var dnode = require('dnode');
-var server = dnode({
- zing : function (n, cb) { cb(n * 100) }
+var server = dnode(function (remote, conn) {
+ this.zing = function (n, cb) { cb(n * 100) };
});
server.listen(7070);
View
2  index.js
@@ -187,7 +187,7 @@ dnode.prototype.listen = function () {
// a webserver, use socket.io
server = SocketIO(
server || params.webserver,
- params.mount || '/dnode.js',
+ params.mount === undefined ? '/dnode.js' : params.mount,
params.io || {}
);
}
View
9 package.json
@@ -25,15 +25,14 @@
"socket.io" : "0.8.6",
"socket.io-client" : "https://github.com/substack/socket.io-client/tarball/master",
"lazy" : ">=1.0.5 <1.1",
- "traverse" : "0.4.x",
- "dnode-protocol" : "0.1.x",
+ "dnode-protocol" : "~0.1.2",
"jsonify" : "0.0.x"
},
"devDependencies" : {
- "tap" : "0.0.x",
+ "tap" : "~0.2.4",
"browserify" : "1.4.x",
- "uglify-js" : "1.0.6",
- "express" : "2.2.2"
+ "uglify-js" : "~1.2.5",
+ "express" : "2.5.x"
},
"scripts" : {
"test" : "tap test/*.js"
Please sign in to comment.
Something went wrong with that request. Please try again.