interface.close()

rl.close() Closes the Interface instance, relinquishing control on the input and output streams. The 'close' event will also be emitted.

process.title

process.title Getter/setter to set what is displayed in ps. When used as a setter, the maximum length is platform-specific and probably short. On Linux and OS X, it's limited to the size of the binary name plus the length of the command line arguments because it overwrites the argv memory. v0.8 allowed for longer process title strings by also overwriting the environ memory but that was potentially insecure/confusing in some (rather obscure) cases.

DiffieHellman

Class: DiffieHellman The DiffieHellman class is a utility for creating Diffie-Hellman key exchanges. Instances of the DiffieHellman class can be created using the crypto.createDiffieHellman() function. const crypto = require('crypto'); const assert = require('assert'); // Generate Alice's keys... const alice = crypto.createDiffieHellman(2048); const alice_key = alice.generateKeys(); // Generate Bob's keys... const bob = crypto.createDiffieHellman(alice.getPrime(), alice.getGenerator()); con

cluster.fork()

cluster.fork([env]) env <Object> Key/value pairs to add to worker process environment. return <cluster.Worker> Spawn a new worker process. This can only be called from the master process.

http.ServerResponse

Class: http.ServerResponse This object is created internally by a HTTP server--not by the user. It is passed as the second parameter to the 'request' event. The response implements the Writable Stream interface. This is an EventEmitter with the following events:

resumeSession event (tls.Server)

Event: 'resumeSession' function (sessionId, callback) { } Emitted when the client wants to resume the previous TLS session. The event listener may perform a lookup in external storage using the given sessionId and invoke callback(null, sessionData) once finished. If the session can't be resumed (i.e., doesn't exist in storage) one may call callback(null, null). Calling callback(err) will terminate incoming connection and destroy the socket. NOTE: adding this event listener will only have an e

process.stdout

process.stdout A Writable Stream to stdout (on fd 1). For example, a console.log equivalent could look like this: console.log = (msg) => { process.stdout.write(`${msg}\n`); }; process.stderr and process.stdout are unlike other streams in Node.js in that they cannot be closed (end() will throw), they never emit the 'finish' event and that writes can block when output is redirected to a file (although disks are fast and operating systems normally employ write-back caching so it should be a

response.addTrailers()

response.addTrailers(headers) This method adds HTTP trailing headers (a header but at the end of the message) to the response. Trailers will only be emitted if chunked encoding is used for the response; if it is not (e.g., if the request was HTTP/1.0), they will be silently discarded. Note that HTTP requires the Trailer header to be sent if you intend to emit trailers, with a list of the header fields in its value. E.g., response.writeHead(200, { 'Content-Type': 'text/plain',

net_server.listening

server.listening A Boolean indicating whether or not the server is listening for connections.

setTimeout()

setTimeout(callback, delay[, arg][, ...]) Schedules execution of a one-time callback after delay milliseconds. Returns a timeoutObject for possible use with clearTimeout. Additional optional arguments may be passed to the callback. The callback will likely not be invoked in precisely delay milliseconds. Node.js makes no guarantees about the exact timing of when callbacks will fire, nor of their ordering. The callback will be called as close as possible to the time specified. To follow browser