Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated the simple example to use upnode.listen

  • Loading branch information...
commit 9f73eced2c8713c7966a4db9c8afa6339b2d8c16 1 parent 27037b1
@substack authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.