simple-websocket
simple-websocket copied to clipboard
Feature request: unref() method
It would be cool if unref() was implemented:
https://nodejs.org/api/net.html#net_socket_unref
Sure, interested in sending a PR?
I saw your issue https://github.com/websockets/ws/issues/1031 so I think the main thing to watch out for is if the user calls socket.unref() before the underlying socket is ready. That would need to be queued until the socket becomes ready.
Sure, will do when I find some time!