Package | Description |
---|---|
okhttp3.internal.sse |
Private support classes for server-sent events.
|
okhttp3.sse |
Support for server-sent events.
|
Modifier and Type | Class and Description |
---|---|
class |
RealEventSource |
Modifier and Type | Method and Description |
---|---|
EventSource |
EventSource.Factory.newEventSource(Request request,
EventSourceListener listener)
Creates a new event source and immediately returns it.
|
Modifier and Type | Method and Description |
---|---|
void |
EventSourceListener.onClosed(EventSource eventSource)
TODO description.
|
void |
EventSourceListener.onEvent(EventSource eventSource,
java.lang.String id,
java.lang.String type,
java.lang.String data)
TODO description.
|
void |
EventSourceListener.onFailure(EventSource eventSource,
java.lang.Throwable t,
Response response)
Invoked when an event source has been closed due to an error reading from or writing to the
network.
|
void |
EventSourceListener.onOpen(EventSource eventSource,
Response response)
Invoked when an event source has been accepted by the remote peer and may begin transmitting
events.
|