32d6594476
Prior to this logic not only was the error response incorrect for events, but we registered event listeners before the authentication event; so if auth failed we flooded the socket with tons of output that was never going to be sent anyways. This change now waits to register listeners until the socket is fully authenticated and we're guaranteed to have a token present. |
||
---|---|---|
.. | ||
listeners.go | ||
message.go | ||
websocket.go |