Permalink
Browse files

commented index.js

  • Loading branch information...
1 parent c8a3748 commit df645b8881112e1dab0ad6d14011706ba379e5a8 @dotmaster committed Mar 5, 2011
Showing with 8 additions and 0 deletions.
  1. +5 −0 History.md
  2. +3 −0 index.js
View
@@ -1,4 +1,9 @@
+n.n.n / 2011-03-03
+==================
+
+ * now
+
n.n.n / 2011-03-03
==================
View
@@ -1,6 +1,9 @@
+//versions prior to node 0.4 don't support node_modules for lookup, so unshift the node_modules folder to require paths for those
if (new RegExp('v(\\d)\.(\\d)\.(\\d)').exec(process.version)[2]<4) require(__dirname + "/lib/setup").ext('node_modules');
+//export through socket.io
module.exports = require('./node_modules/socket.io');
var Listener = module.exports.Listener;
var nodeTransport = require('./nodeTransport')
Listener.addTransport('nodeTransport', nodeTransport)
+//add nodeClient to the list of exports
module.exports.nodeClient = require ('./nodeClient').nodeClient;

0 comments on commit df645b8

Please sign in to comment.