Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Getting ready for 1.0

  • Loading branch information...
commit c59aa6ff2c7fdf60a8578b6309054963c1e0c09a 1 parent 5312e15
@rauchg rauchg authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.