Skip to content

Files

Latest commit

Aug 30, 2017
365b8db · Aug 30, 2017

History

History
10 lines (7 loc) · 291 Bytes

socket_ref.md

File metadata and controls

10 lines (7 loc) · 291 Bytes
  • Returns: {net.Socket} The socket itself.

Opposite of unref, calling ref on a previously unrefd socket will not let the program exit if it's the only socket left (the default behavior). If the socket is refd calling ref again will have no effect.