five-on-it / apps/client/electron/bridge
apps/client/electron/bridge
The bridge between the desktop app's page and its main process, which the preload (preload.ts) exposes as window.foi: the Electron version, and the local game server the app hosts when the player picks Play local → Host (main.ts), which friends on the same network join at the machine's addresses; and the player's answer about crash reports, which the page tells the main process so that it reports its own crashes (and its page's and its game server's deaths) only with it; and Steam (steam.ts, steam-openid.ts): a ticket for the platform's API when Steam runs, and Steam's own sign-in page in a window of the app's when it does not. Types only: the page, the preload and the main process agree on them here.