1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Receivers: Store connection state in main process

This commit is contained in:
Michael Hollister 2025-04-29 13:03:10 -05:00
parent 75f2f3dded
commit 5782fcc3ca
8 changed files with 32 additions and 16 deletions

View file

@ -281,6 +281,10 @@ export class Main {
window.setFullScreen(false);
});
ipcMain.handle('get-sessions', () => {
return [].concat(Main.tcpListenerService.getSessions(), Main.webSocketListenerService.getSessions());
});
if (Main.shouldOpenMainWindow) {
Main.openMainWindow();
}