Skip to content

okhttp-sse / okhttp3.sse / EventSourceListener


abstract class EventSourceListener


Name Summary
<init> EventSourceListener()


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