error event (net.Server)

Event: 'error' <Error> Emitted when an error occurs. The 'close' event will be called directly following this event. See example in discussion of server.listen.

error event (dgram.Socket)

Event: 'error' exception <Error> The 'error' event is emitted whenever any error occurs. The event handler function is passed a single Error object.

error event (fs.FSWatcher)

Event: 'error' error <Error> Emitted when an error occurs.

error event (net.Socket)

Event: 'error' <Error> Emitted when an error occurs. The 'close' event will be called directly following this event.

error event (ChildProcess)

Event: 'error' err <Error> the error. The 'error' event is emitted whenever: The process could not be spawned, or The process could not be killed, or Sending a message to the child process failed. Note that the 'exit' event may or may not fire after an error has occurred. If you are listening to both the 'exit' and 'error' events, it is important to guard against accidentally invoking handler functions multiple times. See also ChildProcess#kill() and ChildProcess#send().

end event (stream.Readable)

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

Error

Class: Error A generic JavaScript Error object that does not denote any specific circumstance of why the error occurred. Error objects capture a "stack trace" detailing the point in the code at which the Error was instantiated, and may provide a text description of the error. All errors generated by Node.js, including all System and JavaScript errors, will either be instances of, or inherit from, the Error class.

ecdh.setPublicKey()

ecdh.setPublicKey(public_key[, encoding]) Stability: 0 - Deprecated Sets the EC Diffie-Hellman public key. Key encoding can be 'binary', 'hex' or 'base64'. If encoding is provided public_key is expected to be a string; otherwise a Buffer is expected. Note that there is not normally a reason to call this method because ECDH only requires a private key and the other party's public key to compute the shared secret. Typically either ecdh.generateKeys() or ecdh.setPrivateKey() will be called. The e

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.

ecdh.getPublicKey()

ecdh.getPublicKey([encoding[, format]]) Returns the EC Diffie-Hellman public key in the specified encoding and format. The format argument specifies point encoding and can be 'compressed', 'uncompressed', or 'hybrid'. If format is not specified the point will be returned in 'uncompressed' format. The encoding argument can be 'binary', 'hex', or 'base64'. If encoding is specified, a string is returned; otherwise a Buffer is returned.