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

Not calling next on io.of('/test') middleware does not timeout or error

Open manast opened this issue 10 years ago • 0 comments

In the following code server side:

io.of('/test').use(function(socket, next){
  console.log("Authenticating...")
  //next();
});

A socket.io connecting to the /test namespace will never connect (obviously), but it will never either get a timeout or error, it will just be in a pre-connection state for ever. Seems like an innocuous bug but its not, in my example next is not called explicitly, but if the code before next throws an exception for example you will get the same result on the client side.

manast avatar Feb 13 '15 23:02 manast