Emitted when the stream and any of its underlying resources (a file descriptor, for example) have been closed.
Emitted when the stream and any of its underlying resources (a file descriptor, for example) have been closed. The event indicates that no more events will be emitted, and no further computation will occur.
If a stream.write(chunk) call returns false, then the 'drain' event will indicate when it is appropriate to begin writing more data to the stream.
If a stream.write(chunk) call returns false, then the 'drain' event will indicate when it is appropriate to begin writing more data to the stream.
Emitted if there was an error when writing or piping data.
Emitted if there was an error when writing or piping data.
When the stream.end() method has been called, and all data has been flushed to the underlying system, this event is emitted.
When the stream.end() method has been called, and all data has been flushed to the underlying system, this event is emitted.
This is emitted whenever the stream.pipe() method is called on a readable stream, adding this writable to its set of destinations.
This is emitted whenever the stream.pipe() method is called on a readable stream, adding this writable to its set of destinations.
This is emitted whenever the stream.unpipe() method is called on a readable stream, removing this writable from its set of destinations.
This is emitted whenever the stream.unpipe() method is called on a readable stream, removing this writable from its set of destinations.
Writable Events