You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm opening this issue to discuss a PR I put up a couple of weeks ago. Perhaps some community discussion is more appropriate/likely here than there?
Is your feature request related to a problem? Please describe.
If a client app is trying to reconnect, it leaves a refd timer on the event loop which will prevent the program from exiting. This might be desirable behavior but it'd be nice to be able to turn it off.
Of course, the other alternative is to just use the close method, but I'm trying to handle gracefully the case where the user calling my library fails to call close on my wrapper and is scratching their head as to why their program is hung.
Activity
feat: add autoUnref option
darrachequesne commentedon Mar 12, 2021
Implemented in 6abfa1f and included in
socket.io-client@4.0.0. Thanks!feat: add autoUnref option