Skip to content
Browse files

updated the simple example to use upnode.listen

  • Loading branch information...
1 parent 27037b1 commit 9f73eced2c8713c7966a4db9c8afa6339b2d8c16 @substack substack committed Mar 23, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 example/simple/server.js
View
7 example/simple/server.js
@@ -1,8 +1,5 @@
-var dnode = require('dnode');
var upnode = require('../../');
-var server = dnode(function (client, conn) {
+upnode(function (client, conn) {
this.time = function (cb) { cb(new Date().toString()) };
-});
-server.use(upnode.ping);
-server.listen(7000);
+}).listen(7000);

0 comments on commit 9f73ece

Please sign in to comment.
Something went wrong with that request. Please try again.