Class CoordinatorSocket
-
- All Implemented Interfaces:
public final class CoordinatorSocket extends PersistentSocket<ConnectedEvent>
The Coordinator sockets send a user authentication request
-
-
Field Summary
Fields Modifier and Type Field Description private LongreconnectTimeoutprivate final MutableSharedFlow<VideoEvent>eventsprivate final MutableSharedFlow<Throwable>errorsprivate final StateFlow<SocketState>connectionStateprivate final StateFlow<String>connectionIdprivate CancellableContinuation<ConnectedEvent>connected
-
Constructor Summary
Constructors Constructor Description CoordinatorSocket(String url, User user, String token, CoroutineScope scope, OkHttpClient httpClient, NetworkStateProvider networkStateProvider)
-
Method Summary
Modifier and Type Method Description Unitauthenticate()UnitonMessage(WebSocket webSocket, String text)Invoked when a text (type 0x1) message has been received.-
Methods inherited from class io.getstream.video.android.core.socket.PersistentSocket
cleanup, connect, disconnect, getConnected, getConnectionId, getConnectionState, getErrors, getEvents, getReconnectTimeout, onClosed, onClosing, onFailure, onInternetConnected, onInternetDisconnected, onOpen, reconnect, setConnected, setReconnectTimeout -
Methods inherited from class okhttp3.WebSocketListener
onMessage -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CoordinatorSocket
CoordinatorSocket(String url, User user, String token, CoroutineScope scope, OkHttpClient httpClient, NetworkStateProvider networkStateProvider)
-
-
Method Detail
-
authenticate
Unit authenticate()
-
-
-
-