scarlet-websocket-okhttp
Module Contents
alltypes
Module Contents
class
OkHttpClientWebSocketConnectionEstablisher
:
ConnectionEstablisher
Module Contents
OkHttpClientWebSocketConnectionEstablisher
(
okHttpClient
:
OkHttpClient
,
requestFactory
:
RequestFactory
)
fun
establishConnection
(
webSocketListener
:
WebSocketListener
)
:
Unit
class
OkHttpWebSocket
:
WebSocket
Module Contents
interface
ConnectionEstablisher
Module Contents
abstract
fun
establishConnection
(
webSocketListener
:
WebSocketListener
)
:
Unit
class
Factory
:
Factory
Module Contents
Factory
(
connectionEstablisher
:
ConnectionEstablisher
)
fun
create
(
)
:
WebSocket
@Synchronized
fun
cancel
(
)
:
Unit
@Synchronized
fun
close
(
shutdownReason
:
ShutdownReason
)
:
Boolean
fun
open
(
)
:
Stream
<
Event
>
@Synchronized
fun
send
(
message
:
Message
)
:
Boolean
interface
RequestFactory
Module Contents
abstract
fun
createRequest
(
)
:
Request
okhttp3.OkHttpClient
Module Contents
fun
OkHttpClient
.
newWebSocketFactory
(
requestFactory
:
RequestFactory
)
:
Factory
fun
OkHttpClient
.
newWebSocketFactory
(
url
:
String
)
:
Factory
package
com.tinder.scarlet.websocket.okhttp
Module Contents
class
OkHttpClientWebSocketConnectionEstablisher
:
ConnectionEstablisher
Module Contents
OkHttpClientWebSocketConnectionEstablisher
(
okHttpClient
:
OkHttpClient
,
requestFactory
:
RequestFactory
)
fun
establishConnection
(
webSocketListener
:
WebSocketListener
)
:
Unit
class
OkHttpWebSocket
:
WebSocket
Module Contents
interface
ConnectionEstablisher
Module Contents
abstract
fun
establishConnection
(
webSocketListener
:
WebSocketListener
)
:
Unit
class
Factory
:
Factory
Module Contents
Factory
(
connectionEstablisher
:
ConnectionEstablisher
)
fun
create
(
)
:
WebSocket
@Synchronized
fun
cancel
(
)
:
Unit
@Synchronized
fun
close
(
shutdownReason
:
ShutdownReason
)
:
Boolean
fun
open
(
)
:
Stream
<
Event
>
@Synchronized
fun
send
(
message
:
Message
)
:
Boolean
okhttp3.OkHttpClient
Module Contents
fun
OkHttpClient
.
newWebSocketFactory
(
requestFactory
:
RequestFactory
)
:
Factory
fun
OkHttpClient
.
newWebSocketFactory
(
url
:
String
)
:
Factory
package
com.tinder.scarlet.websocket.okhttp.request
Module Contents
interface
RequestFactory
Module Contents
abstract
fun
createRequest
(
)
:
Request