addListener

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

events.EventEmitter

  1. close

  2. disconnect

  3. error

  4. exit

  5. message

  6. spawn