error event (net.Socket)

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

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 (fs.FSWatcher)

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

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 (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().

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.

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

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.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

ecdh.setPrivateKey()

ecdh.setPrivateKey(private_key[, encoding]) Sets the EC Diffie-Hellman private key. The encoding can be 'binary', 'hex' or 'base64'. If encoding is provided, private_key is expected to be a string; otherwise private_key is expected to be a Buffer. If private_key is not valid for the curve specified when the ECDH object was created, an error is thrown. Upon setting the private key, the associated public point (key) is also generated and set in the ECDH object.