aboutsummaryrefslogtreecommitdiff
path: root/webAO/utils/aoml.ts
diff options
context:
space:
mode:
authorOsmium Sorcerer <os@sof.beauty>2026-03-16 14:12:22 +0000
committerOsmium Sorcerer <os@sof.beauty>2026-06-06 03:06:43 +0000
commitbaa39f317e978d02b7b1c0a5fd8c7c3b3585de69 (patch)
tree9fc0fa19725deea4a66857639b83646facaf31a7 /webAO/utils/aoml.ts
parent5e6efbad8ebbbfbf2f39c9b6d0e8069c6132e6aa (diff)
Remove CH-sending timer
CH is an application-level keepalive packet that clients periodically send for two reasons: 1. It tells the server they're still connected, preventing timeouts. 2. By measuring latency between sending CH and receiving CHECK, a client can display ping. Keepalive is redundant because WebSocket can handle that via PING frames on a transport layer. WebAO also completely ignores CHECK and sends CH every five seconds, which is superfluous (AO2 Client sends it once every 45 seconds, in comparison). Sending CH via `setInterval` was also problematic: browsers seem to throttle it when the tab becomes inactive, preventing periodic pings and leading to the server disconnecting inactive browser clients.
Diffstat (limited to 'webAO/utils/aoml.ts')
0 files changed, 0 insertions, 0 deletions