sindresorhus / electron-better-ipc

Simplified IPC communication for Electron apps
MIT License
715 stars 60 forks source link

Add ability to remove listeners #5

Closed AnsonT closed 5 years ago

AnsonT commented 6 years ago

answerMain, answerRenderer should return a token that can be used to remove the callbacks as listeners.

semireg commented 6 years ago

@AnsonT, Check out this quick proof of concept. I put it together quickly, but it works.

https://github.com/semireg/electron-better-ipc/commit/f52ece8dc58a1a4acf90418ae0d8d5afa5a6f1cb

sindresorhus commented 6 years ago

PR welcome :)