onFailure

open fun onFailure(eventSource: EventSource, t: Throwable?, response: Response?)

Invoked when an event source has been closed due to an error reading from or writing to the network. Incoming events may have been lost. No further calls to this listener will be made.