Handshake http request might already have necessary
credentials to establish authentication, such as Authorization
header. In this case, it might be desirable to call
req.socket.setAuthToken within MIDDLEWARE_HANDSHAKE_SC even if
handshake event doesn't have authToken from client.
This submission ensures handshake socket response contains
isAuthenticated=true for the above use case
Handshake http request might already have necessary credentials to establish authentication, such as Authorization header. In this case, it might be desirable to call req.socket.setAuthToken within MIDDLEWARE_HANDSHAKE_SC even if
handshake event doesn't have authToken from client.
This submission ensures handshake socket response contains isAuthenticated=true for the above use case