Closed omgitsraven closed 4 years ago
I just realised that process.exit()
works, so maybe not exiting implicitly doesn't really matter that much...
Hmm -- I just noticed client._destroy()
in the readme, but calling that still doesn't let the program explicitly exit?
...I take it back; client._destroy()
just takes several seconds to complete. Never mind then :)
So yeah, for anyone else in my shoes, the 'clean' but slow way is client._destroy()
, and the immediate way is process.exit()
.
Once you're connected, is there any way for the script to decide when to close itself, or is the only option for the user to manually ctrl-C?