diff --git a/package.json b/package.json index ec39c0b008..7e9db81298 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ }, "dependencies": { "debug": "2.3.3", - "engine.io": "1.8.2", + "engine.io": "2.0.0", "has-binary": "0.1.7", "object-assign": "4.1.0", "socket.io-adapter": "0.5.0", - "socket.io-client": "1.7.2", + "socket.io-client": "socketio/socket.io-client", "socket.io-parser": "2.3.1" }, "devDependencies": { diff --git a/test/socket.io.js b/test/socket.io.js index 01bc134af2..9d69c19744 100644 --- a/test/socket.io.js +++ b/test/socket.io.js @@ -251,7 +251,7 @@ describe('socket.io', function(){ request.get('http://localhost:54013/socket.io/default/') .query({ transport: 'polling' }) .end(function (err, res) { - expect(res.status).to.be(400); + expect(res.status).to.be(403); done(); }); }); @@ -262,7 +262,7 @@ describe('socket.io', function(){ .query({ transport: 'polling' }) .set('origin', 'http://herp.derp') .end(function (err, res) { - expect(res.status).to.be(400); + expect(res.status).to.be(403); done(); }); }); @@ -305,7 +305,7 @@ describe('socket.io', function(){ .set('origin', 'http://herp.derp') .query({ transport: 'polling' }) .end(function (err, res) { - expect(res.status).to.be(400); + expect(res.status).to.be(403); done(); }); }); @@ -357,7 +357,7 @@ describe('socket.io', function(){ .set('origin', 'http://foo.example') .query({ transport: 'polling' }) .end(function (err, res) { - expect(res.status).to.be(400); + expect(res.status).to.be(403); done(); }); });