isle-portable/ISLE
Christian Semmler 982957ee5e
Add WebSocket reconnection with exponential backoff
Automatically reconnect when the WebSocket connection is lost (e.g.
phone sleep, alt-tab, network blip) instead of exiting the game.

- Add reconnection state machine (CONNECTED → RECONNECTING → CONNECTED
  or DISCONNECTED) with exponential backoff (1s→30s cap, 10 max attempts)
- Add OnConnectionStatusChanged callback (connected/reconnecting/failed/
  rejected) to PlatformCallbacks, with Emscripten CustomEvent dispatch
  and native SDL_Log implementations
- Add WorldStateSync::ResetForReconnect() to clear session state
- Only exit the game on room-full rejection (WasRejected); connection
  loss is handled internally by the state machine
- Rename WasDisconnected→WasRejected, CheckDisconnected→CheckRejected,
  IsMultiplayerDisconnected→IsMultiplayerRejected through the full call
  chain for accurate naming
- Remove Module._exitCode from JS onclose; use C++ callback +
  sessionStorage for room-full signaling instead
- Clean up EXIT_CONNECTION_LOST constant (obsolete)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 13:34:45 -07:00
..
3ds Implement real transition for 3DS (#538) 2025-07-06 15:00:39 +00:00
android Clean up config code (#679) 2025-08-15 18:56:36 +02:00
emscripten Separate extensions (#18) 2026-03-13 23:12:07 +01:00
ios Clean up config code (#679) 2025-08-15 18:56:36 +02:00
res New 3DS banner sound, move 3DS data to packaging (#605) 2025-07-14 20:37:44 +02:00
switch Switch port (#731) 2025-11-15 23:51:19 +01:00
vita Add PSVita port (#541) 2025-10-31 23:23:12 +00:00
xbox_one_series Add Xbox One/Series X|S port (#526) 2025-07-06 07:28:00 -07:00
isleapp.cpp Add WebSocket reconnection with exponential backoff 2026-03-16 13:34:45 -07:00
isleapp.h Add isle:Active in Background config option (#756) 2025-12-31 15:48:40 +00:00
islefiles.cpp (Web port) Add HD textures option (#647) 2025-07-24 22:10:15 +00:00
library_msvc.h Add SmartHeap for LEGO1 (#1694) 2025-10-12 07:36:36 +02:00
library_smartheap.h Small update to datacmp and roadmap (#1048) 2024-06-28 14:58:35 -07:00