Skip to content
Browse files

Getting ready for 1.0

  • Loading branch information...
1 parent 5312e15 commit c59aa6ff2c7fdf60a8578b6309054963c1e0c09a @rauchg rauchg committed Mar 9, 2012
Showing with 7 additions and 1 deletion.
  1. +6 −0 lib/manager.js
  2. +1 −1 test/transports.websocket.test.js
View
6 lib/manager.js
@@ -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');
};
View
2 test/transports.websocket.test.js
@@ -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();

0 comments on commit c59aa6f

Please sign in to comment.
Something went wrong with that request. Please try again.