main
Entry point of the dashboard bundle.
Probes /api/status for the server's streaming mode and dual-mode flag,
publishes them on window.__SELKIES_STREAMING_MODE__ and
window.__SELKIES_DUAL_MODE__, then loads selkies-core with
window.__SELKIES_DEFER_INITIALIZATION set and starts it through
window.selkiesCoreInitialize() so the core comes up in the detected mode.
The #shared and #player2 to #player4 hashes render no dashboard; the
player hashes mount only the floating touch-gamepad toggle. The touch
gamepad is bundled straight from the universal-touch-gamepad addon, so a
fresh checkout builds without a vendored copy.
Functions
detectInitialMode()
function detectInitialMode(): Promise<void>;Defined in: main.jsx:39
Publishes the server's streaming mode and dual-mode flag on window before
selkies-core is imported.
The dual-mode flag lets the dashboard show the WebSocket/WebRTC toggle
before serverSettings arrive over the stream, so a WebRTC session that
never connects still leaves a visible way back to WebSockets. A failed
probe is logged and leaves both globals unset.
Returns
Promise<void>