public static interface EventSource.Factory
| Modifier and Type | Method | Description |
|---|---|---|
EventSource |
newEventSource(okhttp3.Request request,
EventSourceListener listener) |
Creates a new event source and immediately returns it.
|
EventSource newEventSource(okhttp3.Request request, EventSourceListener listener)
listener
will be notified. The caller must cancel the returned event source when it is no longer
in use.Copyright © 2020. All rights reserved.