Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

commented index.js

  • Loading branch information...
commit df645b8881112e1dab0ad6d14011706ba379e5a8 1 parent c8a3748
@dotmaster authored
Showing with 8 additions and 0 deletions.
  1. +5 −0 History.md
  2. +3 −0  index.js
View
5 History.md
@@ -2,6 +2,11 @@
n.n.n / 2011-03-03
==================
+ * now
+
+n.n.n / 2011-03-03
+==================
+
n.n.n / 2011-03-03
View
3  index.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.