title: Eventlistener function is undefined?
body: <p>When a button is clicked I want the event listener to be removed.</p>
  <pre><code>function clickMe(f,i){
        ipcRenderer.send('click', i)
  
        ipcRenderer.on(`message`, function (en, message) {
          document.getElementById(`status${i}`).innerHTML = message[1];
          //ipcRenderer.removeAllListeners('message') &lt;- I don't want all listeners to be removed
        });
  }
  </code></pre>
  <p>As shown in the code above, removeAllListeners works, however, I do not want all listeners to be removed. I believe I can use <code>removeListener('message', function)</code> but if I try to put <code>removeListener('message', startMe())</code> I get thrown an error of undefined. How would I go abouts doing this?</p>