stellar-sdk
Toggle table of contents
1.3.0
common
Target filter
common
Switch theme
Search in API
Skip to content
stellar-sdk
stellar-sdk
/
com.soneso.stellar.sdk.horizon.requests
/
SSEStream
/
Companion
Companion
object
Companion
Members
Properties
DEFAULT_
RECONNECT_
TIMEOUT
Link copied to clipboard
val
DEFAULT_RECONNECT_TIMEOUT
:
Duration
Default timeout before attempting to reconnect (15 seconds).
Functions
create
Link copied to clipboard
fun
<
T
:
Response
>
create
(
httpClient
:
HttpClient
,
requestBuilder
:
RequestBuilder
,
serializer
:
KSerializer
<
T
>
,
listener
:
EventListener
<
T
>
,
reconnectTimeout
:
Duration
=
DEFAULT_RECONNECT_TIMEOUT
)
:
SSEStream
<
T
>
Creates and starts a new SSE stream.