3 ms·
The easiest way would be to set a timer on the client side every N minutes. If the server hasn't received a heartbeat from the client in 3N or 2N minutes, assum
by muzani 7y ago
The easiest way would be to set a timer on the client side every N minutes. If the server hasn't received a heartbeat from the client in 3N or 2N minutes, assume that they're disconnected.
Also set a disconnect request whenever the app/site closes.
- thescribbblr 7y agoAwesome! Thank you so much.