add socket connect and reconnect to session code
This commit is contained in:
parent
e0da50eb27
commit
b05cb202b6
9 changed files with 140 additions and 166 deletions
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue