socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Authorization error messages

Open kitek opened this issue 15 years ago • 2 comments

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);
  };

kitek avatar Oct 07 '11 12:10 kitek

I have the same problem :(

digitalStyx avatar Oct 07 '11 12:10 digitalStyx

Duplicate of: https://github.com/LearnBoost/socket.io/issues/331

3rd-Eden avatar Oct 11 '11 07:10 3rd-Eden