fixed all broken tests with socket.io 1.0, close #10

This commit is contained in:
José F. Romaniello
2014-06-05 15:45:41 -03:00
parent 130357ff80
commit 3484a429ed
5 changed files with 36 additions and 25 deletions

View File

@ -48,12 +48,11 @@ exports.start = function (options, callback) {
var sio = socketIo.listen(server);
sio.configure(function(){
if (options.handshake) {
this.set('authorization', socketio_jwt.authorize(options));
}
this.set('log level', 0);
});
if (options.handshake) {
// this.set('authorization', socketio_jwt.authorize(options));
sio.use(socketio_jwt.authorize(options));
}
sio.set('log level', 0);
if (options.handshake) {
sio.sockets.on('echo', function (m) {