net_socket.setKeepAlive()

socket.setKeepAlive([enable][, initialDelay]) Enable/disable keep-alive functionality, and optionally set the initial delay before the first keepalive probe is sent on an idle socket. enable defaults to false. Set initialDelay (in milliseconds) to set the delay between the last data packet received and the first keepalive probe. Setting 0 for initialDelay will leave the value unchanged from the default (or previous) setting. Defaults to 0. Returns socket.

net_socket.setEncoding()

socket.setEncoding([encoding]) Set the encoding for the socket as a Readable Stream. See stream.setEncoding() for more information.

net_socket.resume()

socket.resume() Resumes reading after a call to pause().

net_socket.remotePort

socket.remotePort The numeric representation of the remote port. For example, 80 or 21.

net_socket.remoteFamily

socket.remoteFamily The string representation of the remote IP family. 'IPv4' or 'IPv6'.

net_socket.remoteAddress

socket.remoteAddress The string representation of the remote IP address. For example, '74.125.127.100' or '2001:4860:a005::68'. Value may be undefined if the socket is destroyed (for example, if the client disconnected).

net_socket.ref()

socket.ref() 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. Returns socket.

net_socket.pause()

socket.pause() Pauses the reading of data. That is, 'data' events will not be emitted. Useful to throttle back an upload.

net_socket.localPort

socket.localPort The numeric representation of the local port. For example, 80 or 21.

net_socket.localAddress

socket.localAddress The string representation of the local IP address the remote client is connecting on. For example, if you are listening on '0.0.0.0' and the client connects on '192.168.1.1', the value would be '192.168.1.1'.