addListener

open fun addListener(event: String, listener: Function<Unit>)(source)

Event emitter The defined events on documents including:

  1. close

  2. drain

  3. error

  4. finish

  5. pipe

  6. unpipe


open fun addListener(event: Symbol, listener: Function<Unit>)(source)