Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Pass options to the listen method

This fixes a bug that occurred when using a custom logger. would always send " started" trough the default logger since options was not set until after the server is started.
  • Loading branch information...
commit 151932a3955d3ae5e563ef2947e37995fb525d0e 1 parent 6c80ac1
@jnordberg jnordberg authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/now.js
5 lib/now.js
@@ -153,10 +153,7 @@ Now.prototype.initialize = function (server, options) {
var self = this;
fileServer.wrapServer(server, this.options);
- this.server = io.listen(server);
- for (var i in this.options.socketio) {
- this.server.set(i, this.options.socketio[i]);
- }
+ this.server = io.listen(server, this.options.socketio);
// Need this to be separate from clientsMap.
this.server.sockets.on('connection', function (socket) {
Please sign in to comment.
Something went wrong with that request. Please try again.