Add gateway pings #20

Merged
hippoz merged 4 commits from gateway-pings into master 2021-09-08 00:28:28 +03:00
Owner

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

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
hippoz added 4 commits 2021-09-08 00:28:17 +03:00
hippoz merged commit aa7c838164 into master 2021-09-08 00:28:28 +03:00
hippoz deleted branch gateway-pings 2021-09-10 23:08:00 +03:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hippoz/brainlet#20
No description provided.