Skip to content

Commit

Permalink
Getting ready for 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Mar 9, 2012
1 parent 5312e15 commit c59aa6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/manager.js
Expand Up @@ -133,6 +133,12 @@ function Manager (server, options) {
}
}

// forward-compatibility with 1.0
var self = this;
this.sockets.on('connection', function (conn) {
self.emit('connection', conn);
});

this.log.info('socket.io started');
};

Expand Down
2 changes: 1 addition & 1 deletion test/transports.websocket.test.js
Expand Up @@ -25,7 +25,7 @@ module.exports = {
, ws;

io.set('transports', ['websocket']);
io.sockets.on('connection', function (socket) {
io.on('connection', function (socket) {
socket.manager.transports[socket.id].name.should.equal('websocket');
ws.finishClose();
cl.end();
Expand Down

0 comments on commit c59aa6f

Please sign in to comment.