onClosed

abstract fun onClosed(eventSource: EventSource, t: Throwable?)(source)

Invoked when an event source has been closed. Incoming events may have been lost. No further calls to this listener will be made.