newSession event (tls.Server)

Event: 'newSession' function (sessionId, sessionData, callback) { } Emitted on creation of a TLS session. May be used to store sessions in external storage. callback must be invoked eventually, otherwise no data will be sent or received from the secure connection. NOTE: adding this event listener will only have an effect on connections established after the addition of the event listener.

tls_server.maxConnections

server.maxConnections Set this property to reject connections when the server's connection count exceeds the specified threshold.

tls_server.connections

server.connections The number of concurrent connections on the server.

buffer.writeInt16BE()

buf.writeInt16BE(value, offset[, noAssert])

util.isNull()

util.isNull(object) Stability: 0 - Deprecated Returns true if the given "object" is strictly null. Otherwise, returns false. const util = require('util'); util.isNull(0) // false util.isNull(undefined) // false util.isNull(null) // true

console.info()

console.info([data][, ...]) The console.info() function is an alias for console.log().

assert.ifError()

assert.ifError(value) Throws value if value is truthy. This is useful when testing the error argument in callbacks. const assert = require('assert'); assert.ifError(0); // OK assert.ifError(1); // Throws 1 assert.ifError('error') // Throws 'error' assert.ifError(new Error()); // Throws Error

net_server.connections

server.connections Stability: 0 - Deprecated: Use server.getConnections() instead. The number of concurrent connections on the server. This becomes null when sending a socket to a child with child_process.fork(). To poll forks and get current number of active connections use asynchronous server.getConnections instead.

zlib.createDeflateRaw()

zlib.createDeflateRaw(options) Returns a new DeflateRaw object with an options.

childprocess.pid

child.pid <Number> Integer Returns the process identifier (PID) of the child process. Example: const spawn = require('child_process').spawn; const grep = spawn('grep', ['ssh']); console.log(`Spawned child pid: ${grep.pid}`); grep.stdin.end();