Permalink
Browse files

pass engine.io server directly

  • Loading branch information...
1 parent 45d75e3 commit a26cf76256971735f6e65ea489c4095ff45d64ee mihs committed Jul 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/now.js
View
@@ -159,7 +159,7 @@ Now.prototype.removeGroup = function (name) {
* @example nowjs.initialize(server, {clientWrite: false, socketio: {'log level': 2});
*/
-Now.prototype.initialize = function (eio, server, options) {
+Now.prototype.initialize = function (eioServer, server, options) {
// Merge options
if (typeof options === 'object') {
nowUtil.extend(this.options, options);
@@ -178,7 +178,7 @@ Now.prototype.initialize = function (eio, server, options) {
var self = this;
fileServer.wrapServer(server, this.options);
- this.server = eio.attach(server, this.options.engineio);
+ this.server = eioServer;
// Need this to be separate from clientsMap.
this.server.on('connection', function (socket) {

0 comments on commit a26cf76

Please sign in to comment.