add socket connect and reconnect to session code

This commit is contained in:
Enrique Hernandez 2021-02-10 09:00:42 -06:00 • committed by riqo
commit b05cb202b6
9 changed files with 140 additions and 166 deletions

View file

@ -3,9 +3,3 @@ const EventEmitter = require('events');
class WindowEmitter extends EventEmitter {}
export const windowEmitter = new WindowEmitter();
const ipcRend = (endpoint: string, message: any) => {
win.webContents.send(endpoint, {
message: message
})
}