Files
orca/cloud/apps
Neil 0148e0c48c fix(sandbox-control): share-link WebSockets get a keepalive ping under Vercel's ~340 s idle cut
Every Orca socket into orcad already gets a WS ping every 10-15 s (orcad's server heartbeat and the
desktop's client liveness). Share links were the gap: the in-VM share proxy piped upgraded sockets raw, so
a preview app's silent WebSocket was closed by Vercel after ~340 s (1006), well before the link's
deadline. The proxy now follows the app's frame boundaries and, after 30 s with no traffic either way,
sends the visitor an empty ping frame between two frames (never inside one). Only 101 upgrades to
websocket get pings; other upgrade protocols stay a raw pipe.

VM script: reaches live VMs through the boot-time entry-point sync (new stamp), and the next golden.
2026-11-14 20:57:31 -08:00
..