On Electron, I make a simple class which assign a listener and remove it after it is called.
class Foo { void Say(text: string) { // The text served to