wings/router/websocket
Dane Everitt 32d6594476 fix incorrect error handling logic when a JWT is created wrongly; closes pterodactyl/panel#3295
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.
2021-10-25 21:23:45 -07:00
..
listeners.go fix incorrect error handling logic when a JWT is created wrongly; closes pterodactyl/panel#3295 2021-10-25 21:23:45 -07:00
message.go Support websocket event to send server stats; ref pterodactyl/panel#2414 2020-09-27 09:46:00 -07:00
websocket.go fix incorrect error handling logic when a JWT is created wrongly; closes pterodactyl/panel#3295 2021-10-25 21:23:45 -07:00