Permalink
Browse files

Make it possible to just require 'socket.io'

  • Loading branch information...
1 parent 699e3f1 commit 4bec17e903be14bf801058b8990c565356c2512a @rauchg rauchg committed Aug 25, 2010
Showing with 5 additions and 4 deletions.
  1. +1 −4 index.js
  2. +4 −0 lib/socket.io/index.js
View
@@ -1,4 +1 @@
-exports.Listener = require('./lib/socket.io/listener');
-exports.listen = function(server, options){
- return new exports.Listener(server, options);
-};
+module.exports = require('./lib/socket.io');
View
@@ -0,0 +1,4 @@
+exports.Listener = require('./listener');
+exports.listen = function(server, options){
+ return new exports.Listener(server, options);
+};

0 comments on commit 4bec17e

Please sign in to comment.