Permalink
Browse files

modified: autoreload_example.js

  • Loading branch information...
1 parent 4b0dec1 commit 43a4af8b8f16827f91adc44a4eff01f6ce7b40c7 @shimondoodkin committed Aug 10, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 autoreload_example.js
@@ -20,6 +20,10 @@ mymodule.name="Shimon";
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end(mymodule.time() + '\n');
+
+ //to do, main module reloadable instead of above you might use:
+ //mymodule.handlerequest(req,res);
+
}).listen(8124);
console.log('Server running at http://127.0.0.1:8124/');

0 comments on commit 43a4af8

Please sign in to comment.