close 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

close event (Readline)

Event: 'close' function () {} Emitted when close() is called. Also emitted when the input stream receives its 'end' event. The Interface instance should be considered "finished" once this is emitted. For example, when the input stream receives ^D, respectively known as EOT. This event is also called if there is no SIGINT event listener present when the input stream receives a ^C, respectively known as SIGINT.

close event (net.Socket)

Event: 'close' had_error <Boolean> true if the socket had a transmission error. Emitted once the socket is fully closed. The argument had_error is a boolean which says if the socket was closed due to a transmission error.

close event (http.Server)

Event: 'close' function () { } Emitted when the server closes.

close event (net.Server)

Event: 'close' Emitted when the server closes. Note that if connections exist, this event is not emitted until all connections are ended.

close event (http.ServerResponse)

Event: 'close' function () { } Indicates that the underlying connection was terminated before response.end() was called or able to flush.

clientError event (tls.Server)

Event: 'clientError' function (exception, tlsSocket) { } When a client connection emits an 'error' event before a secure connection is established it will be forwarded here. tlsSocket is the tls.TLSSocket that the error originated from.

close event (ChildProcess)

Event: 'close' code <Number> the exit code if the child exited on its own. signal <String> the signal by which the child process was terminated. The 'close' event is emitted when the stdio streams of a child process have been closed. This is distinct from the 'exit' event, since multiple processes might share the same stdio streams.

close event (dgram.Socket)

Event: 'close' The 'close' event is emitted after a socket is closed with close(). Once triggered, no new 'message' events will be emitted on this socket.

clientError event (http.Server)

Event: 'clientError' function (exception, socket) { } If a client connection emits an 'error' event, it will be forwarded here. socket is the net.Socket object that the error originated from.