socket.io-client
socket.io-client copied to clipboard
Not calling next on io.of('/test') middleware does not timeout or error
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.