public interface ServerSentEvent
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServerSentEvent.Listener |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Force the Server Sent event channel to close.
|
okhttp3.Request |
request() |
void |
setTimeout(long timeout,
TimeUnit unit)
Defines a timeout to close the connection when now events are received.
|
okhttp3.Request request()
void setTimeout(long timeout,
TimeUnit unit)
timeout - timeout to setunit - the TimeUnit of the timeout to setvoid close()
Copyright © 2018. All rights reserved.