Authentication middleware for socket.io. Those sockets that use this middleware won't receive the request unless the authorization header is properly configured with a valid JWT token.
the socket object
the next middleware function
Authentication middleware for socket.io. Those sockets that use this middleware won't receive the request unless the authorization header is properly configured with a valid JWT token.