joshuaferrara / node-csgo

A node-steam plugin for Counter-Strike: Global Offensive.
MIT License
460 stars 82 forks source link

Implement an 'exited' event #44

Closed cronning9 closed 7 years ago

cronning9 commented 7 years ago

The 'unready' event on CSGO only triggers on unexpected interruptions to the GC connection. Currently, there is no specific event that triggers on CSGO.exit().

The README may lead one to believe that it is recommended practice to remove any event listeners on the unready event -- yet, that doesn't account for intentional exits. An exited event would be ideal here.