socket.io
socket.io copied to clipboard
Authorization error messages
Using socket.io 0.8.4 and when on server side I try this code:
io.configure(function (){
io.set('authorization', function (handshakeData, callback) {
callback("Auth error 1", false);
});
});
Client always receive on error reason: 'handshake error' but never 'Auth error 1' In socket.io source file manager.js:784 (function error) why there is always sent 'handshake error' instead of error param?
function error (err) {
writeErr(500, 'handshake error');
self.log.warn('handshake error ' + err);
};
I have the same problem :(
Duplicate of: https://github.com/LearnBoost/socket.io/issues/331