addListener

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

Event emitter The defined events on documents including:

  1. close

  2. data

  3. end

  4. error

  5. pause

  6. readable

  7. resume


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