method Socket.prototype.ref
Jump to headingSocket.prototype.ref(): this
Opposite of unref()
, calling ref()
on a previously unref
ed socket will not let the program exit if it's the only socket left (the default behavior).
If the socket is ref
ed calling ref
again will have no effect.
Return Type Jump to heading
this
The socket itself.