aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender
AgeCommit message (Collapse)Author
4 daysRemove CH-sending timerOsmium Sorcerer
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.
2026-05-04Replace cookies with localStorageOsmium Sorcerer
Cookies's use case is to store persistent data and send it to the server in subsequent requests, such as to remember logged-in sessions. WebAO is using them to store site settings like ad-hoc hash tables that require parsing and serialization. As a nasty side-effect of how cookies work, clients send all their settings every time they connect to the server. Server has absolutely no use for them, but each client sends them anyway, which is an uncalled-for privacy leak. Remove this mechanism entirely, switch to localStorage which serves exactly the purpose of per-origin store with data that never leaves the browser.
2024-12-12akashi expects 2 args for modcallsstonedDiscord
2024-11-20Prettified Code!stonedDiscord
2024-08-07add ban buttonstonedDiscord
2023-09-20autoformat with eslintstonedDiscord
2023-09-20unused sendMusic.tsstonedDiscord
2022-11-11more console spamstonedDiscord
2022-10-22Update sendServer.tsstonedDiscord
2022-09-09Migrated functionsCaleb
2022-09-08I'm so sorryCaleb
2022-09-08Add Sender supportCaleb