onClosed

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

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