addListener

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

Event emitter The defined events on documents including:

  1. close

  2. data

  3. drain

  4. end

  5. error

  6. finish

  7. pause

  8. pipe

  9. readable

  10. resume

  11. unpipe


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