How to use the electron-better-ipc.ipcMain.removeListener function in electron-better-ipc

To help you get started, we’ve selected a few electron-better-ipc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github npezza93 / archipelago / app / main / windows / visor.js View on Github external
    new Disposable(() => ipc.removeListener('enable-shortcuts', enableShortcuts))
  )
github npezza93 / archipelago / app / main / windows / visor.js View on Github external
    new Disposable(() => ipc.removeListener('disable-shortcuts', disableShortcuts))
  )
github npezza93 / archipelago / app / main / pty.js View on Github external
await new Promise(resolve => {
      this.pty.removeAllListeners('data')
      this.pty.removeAllListeners('exit')
      ipc.removeListener(`pty-resize-${this.sessionId}`, this.handleResize)
      ipc.removeListener(`pty-write-${this.sessionId}`, this.handleWrite)
      this.pty.destroy()
      resolve()
    })
  }
github npezza93 / archipelago / app / main / pty.js View on Github external
await new Promise(resolve => {
      this.pty.removeAllListeners('data')
      this.pty.removeAllListeners('exit')
      ipc.removeListener(`pty-resize-${this.sessionId}`, this.handleResize)
      ipc.removeListener(`pty-write-${this.sessionId}`, this.handleWrite)
      this.pty.destroy()
      resolve()
    })
  }