socket.unref()
-
返回:<net.Socket> 套接字自身
¥Returns: <net.Socket> The socket itself.
如果这是事件系统中唯一活动的套接字,则在套接字上调用 unref()
将允许程序退出。如果套接字已经 unref
再次调用 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 unref
ed calling
unref()
again will have no effect.