tlsSocket.setMaxSendFragment()

tlsSocket.setMaxSendFragment(size) Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512). Returns true on success, false otherwise. Smaller fragment sizes decrease the buffering latency on the client: larger fragments are buffered by the TLS layer until the entire fragment is received and its integrity is verified; large fragments can span multiple roundtrips and their processing can be delayed due to packet loss or reordering. However, smaller fragments add extr

stringdecoder.write()

decoder.write(buffer) Returns a decoded string.

replServer.defineCommand()

replServer.defineCommand(keyword, cmd) keyword <String> cmd <Object> | <Function> Makes a command available in the REPL. The command is invoked by typing a . followed by the keyword. The cmd is an object with the following values: help - help text to be displayed when .help is entered (Optional). action - a function to execute, potentially taking in a string argument, when the command is invoked, bound to the REPLServer instance (Required). If a function is provided

assert.strictEqual()

assert.strictEqual(actual, expected[, message]) Tests strict equality as determined by the strict equality operator ( === ). const assert = require('assert'); assert.strictEqual(1, 2); // AssertionError: 1 === 2 assert.strictEqual(1, 1); // OK assert.strictEqual(1, '1'); // AssertionError: 1 === '1' If the values are not strictly equal, an AssertionError is thrown with a message property set equal to the value of the message parameter. If the message parameter is undefined, a default

open event (fs.WriteStream)

Event: 'open' fd <Number> Integer file descriptor used by the WriteStream. Emitted when the WriteStream's file is opened.

zlib.deflateRaw()

zlib.deflateRaw(buf[, options], callback)

worker.isConnected()

worker.isConnected() This function returns true if the worker is connected to its master via its IPC channel, false otherwise. A worker is connected to its master after it's been created. It is disconnected after the 'disconnect' event is emitted.

buffer.readUIntBE()

buf.readUIntBE(offset, byteLength[, noAssert])

fs.readFileSync()

fs.readFileSync(file[, options]) Synchronous version of fs.readFile. Returns the contents of the file. If the encoding option is specified then this function returns a string. Otherwise it returns a buffer.

pipe event (stream.Writable)

Stability: 2 - Stable A stream is an abstract interface implemented by various objects in Node.js. For example a request to an HTTP server is a stream, as is process.stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter. You can load the Stream base classes by doing require('stream'). There are base classes provided for Readable streams, Writable streams, Duplex streams, and Transform streams. This document is split up into 3 sections: The first section e