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