Skip to content

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

@manast

Description

@manast

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage:socket.io-clientThis concerns the "socket.io-client" package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions