EvenAR / node-simconnect

A cross platform SimConnect client library for Node.JS
GNU Lesser General Public License v3.0
95 stars 33 forks source link

add .once and .off to SimConnectConnection? #66

Closed Pomax closed 1 year ago

Pomax commented 1 year ago

Currently the SimConnectConnection explicitly supports .on and .emit, but to prevent "dead" event handlers from hanging around it would be good to also add wrappers for the .off and maybe .once EventEmitter functions.

They technically work right now, but it might be nicer to have the code make that explicit?

EvenAR commented 1 year ago

Good point, thanks for the suggestion. I have added this in v3.4.0 :)