socket.unref()


如果活跃的 socket 是事件系统中仅存的 socket,则调用 unref 将会允许程序退出。对一个已经调用了 unref 的 socket 再调用 unref 无效。

Calling unref() on a socket will allow the program to exit if this is the only active socket in the event system. If the socket is already unrefed calling unref() again will have no effect.