Skip to content

Commit

Permalink
move socketio options into options
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz committed Apr 7, 2011
1 parent a8f6b00 commit c993085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nowServerLib.js
Expand Up @@ -161,12 +161,12 @@ function handleNewConnection(client){
});
};

exports.initialize = function(server, options, socketioOptions){
exports.initialize = function(server, options){
var options = options || {};
// Override the default HTTP server listeners
fileServer.wrapServer(server, options);

socket = io.listen(server, socketioOptions);
socket = io.listen(server, options.socketio || {});
everyone = new ClientGroup(nowCore.scopes, serverScope, socket);
socket.on('connection', function(client){
nowUtil.initializeScope(serverScope, client);
Expand Down

0 comments on commit c993085

Please sign in to comment.