okhttp-sse
Module Contents
alltypes
Module Contents
interface
EventSource
Module Contents
abstract
fun
cancel
(
)
:
Unit
interface
Factory
Module Contents
abstract
fun
newEventSource
(
request
:
Request
,
listener
:
EventSourceListener
)
:
EventSource
abstract
fun
request
(
)
:
Request
abstract
class
EventSourceListener
Module Contents
EventSourceListener
(
)
open
fun
onClosed
(
eventSource
:
EventSource
)
:
Unit
open
fun
onEvent
(
eventSource
:
EventSource
,
id
:
String
?
,
type
:
String
?
,
data
:
String
)
:
Unit
open
fun
onFailure
(
eventSource
:
EventSource
,
t
:
Throwable
?
,
response
:
Response
?
)
:
Unit
open
fun
onOpen
(
eventSource
:
EventSource
,
response
:
Response
)
:
Unit
object
EventSources
Module Contents
@JvmStatic
fun
createFactory
(
client
:
OkHttpClient
)
:
EventSource.Factory
@JvmStatic
fun
processResponse
(
response
:
Response
,
listener
:
EventSourceListener
)
:
Unit
package
okhttp3.sse
Module Contents
interface
EventSource
Module Contents
abstract
fun
cancel
(
)
:
Unit
interface
Factory
Module Contents
abstract
fun
newEventSource
(
request
:
Request
,
listener
:
EventSourceListener
)
:
EventSource
abstract
fun
request
(
)
:
Request
abstract
class
EventSourceListener
Module Contents
EventSourceListener
(
)
open
fun
onClosed
(
eventSource
:
EventSource
)
:
Unit
open
fun
onEvent
(
eventSource
:
EventSource
,
id
:
String
?
,
type
:
String
?
,
data
:
String
)
:
Unit
open
fun
onFailure
(
eventSource
:
EventSource
,
t
:
Throwable
?
,
response
:
Response
?
)
:
Unit
open
fun
onOpen
(
eventSource
:
EventSource
,
response
:
Response
)
:
Unit
object
EventSources
Module Contents
@JvmStatic
fun
createFactory
(
client
:
OkHttpClient
)
:
EventSource.Factory
@JvmStatic
fun
processResponse
(
response
:
Response
,
listener
:
EventSourceListener
)
:
Unit