| Package | Description |
|---|---|
| okhttp3.internal.sse |
Private support classes for server-sent events.
|
| okhttp3.sse |
Support for server-sent events.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
RealEventSource |
| Modifier and Type | Method | Description |
|---|---|---|
EventSource |
EventSource.Factory.newEventSource(okhttp3.Request request,
EventSourceListener listener) |
Creates a new event source and immediately returns it.
|
| Modifier and Type | Method | 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,
okhttp3.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,
okhttp3.Response response) |
Invoked when an event source has been accepted by the remote peer and may begin transmitting
events.
|
Copyright © 2020. All rights reserved.