eventemitter.removeAllListeners()

emitter.removeAllListeners([eventName]) Removes all listeners, or those of the specified eventName. Note that it is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams). Returns a reference to the EventEmitter so calls can be chained.

readline.moveCursor()

readline.moveCursor(stream, dx, dy) Move cursor relative to it's current position in a given TTY stream.

end event (net.Socket)

Event: 'end' Emitted when the other end of the socket sends a FIN packet. By default (allowHalfOpen == false) the socket will destroy its file descriptor once it has written out its pending write queue. However, by setting allowHalfOpen == true the socket will not automatically end() its side allowing the user to write arbitrary amounts of data, with the caveat that the user is required to end() their side now.

punycode.encode()

punycode.encode(string) Converts a string of Unicode symbols to a Punycode string of ASCII-only symbols. // encode domain name parts punycode.encode('mañana'); // 'maana-pta' punycode.encode('☃-⌘'); // '--dqo34k'

WriteStream

Class: WriteStream A net.Socket subclass that represents the writable portion of a tty. In normal circumstances, process.stdout will be the only tty.WriteStream instance ever created (and only when isatty(1) is true).

punycode.decode()

punycode.decode(string) Converts a Punycode string of ASCII-only symbols to a string of Unicode symbols. // decode domain name parts punycode.decode('maana-pta'); // 'mañana' punycode.decode('--dqo34k'); // '☃-⌘'

tlsSocket.getEphemeralKeyInfo()

tlsSocket.getEphemeralKeyInfo() Returns an object representing the type, name, and size of parameter of an ephemeral key exchange in Perfect Forward Secrecy on a client connection. It returns an empty object when the key exchange is not ephemeral. As this is only supported on a client socket, it returns null if called on a server socket. The supported types are 'DH' and 'ECDH'. The name property is only available in 'ECDH'. Example: { type: 'ECDH', name: 'prime256v1', size: 256 }

request.setSocketKeepAlive()

request.setSocketKeepAlive([enable][, initialDelay]) Once a socket is assigned to this request and is connected socket.setKeepAlive() will be called.

readline.cursorTo()

readline.cursorTo(stream, x, y) Move cursor to the specified position in a given TTY stream.

dgram_socket.addMembership()

socket.addMembership(multicastAddress[, multicastInterface]) multicastAddress <String> multicastInterface <String>, Optional Tells the kernel to join a multicast group at the given multicastAddress using the IP_ADD_MEMBERSHIP socket option. If the multicastInterface argument is not specified, the operating system will try to add membership to all valid networking interfaces.