Skip to content

//okhttp-sse/okhttp3.sse/EventSourceListener

EventSourceListener

[jvm]\ abstract class EventSourceListener

Constructors

EventSourceListener [jvm]
fun EventSourceListener()

Functions

Name Summary
onClosed [jvm]
open fun onClosed(eventSource: EventSource)
TODO description.
onEvent [jvm]
open fun onEvent(eventSource: EventSource, id: String?, type: String?, data: String)
TODO description.
onFailure [jvm]
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.
onOpen [jvm]
open fun onOpen(eventSource: EventSource, response: Response)
Invoked when an event source has been accepted by the remote peer and may begin transmitting events.