snowcone-ltd / libmatoya

Cross-platform application development.
MIT License
578 stars 50 forks source link

WASM WebSocket Keepalive #126

Closed Kodikuu closed 3 months ago

Kodikuu commented 10 months ago

Sends a fake __ping__ keepalive every 60 seconds.

Client-side javascript cannot send ping or pong command frames, this is a fake keepalive that prevents AWS and Cloudflare from considering the WebSocket to be idle and terminating it.