Add gateway pings #20
Loading…
Reference in a new issue
No description provided.
Delete branch "gateway-pings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implementation:
- HELLO packet now contains
pingInterval
- Every
pingInterval
, the client will send a PING packet- On the server, the client's session is re-validated every PING
(Potential) issues:
- Client could send a lot of PINGs and overload the server, since token validation is somewhat complex
- Certain invalid token errors (expiration for example) trigger an exception and as such the client is disconnected with a payload handling error instead of an authentication error