Class SfuSocket
-
- All Implemented Interfaces:
public final class SfuSocket extends PersistentSocket<JoinCallResponseEvent>
The SFU socket is slightly different from the coordinator socket It sends a JoinRequest to authenticate SFU socket uses binary instead of text
-
-
Field Summary
Fields Modifier and Type Field Description private LongreconnectTimeoutprivate final MutableSharedFlow<VideoEvent>eventsprivate final MutableSharedFlow<Throwable>errorsprivate final MutableStateFlow<SocketState>_connectionStateprivate final StateFlow<SocketState>connectionStateprivate StringconnectionIdprivate CancellableContinuation<JoinCallResponseEvent>connected
-
Constructor Summary
Constructors Constructor Description SfuSocket(String url, String sessionId, String token, SuspendFunction0<String> getSubscriberSdp, CoroutineScope scope, OkHttpClient httpClient, NetworkStateProvider networkStateProvider)
-
Method Summary
Modifier and Type Method Description Unitauthenticate()-
Methods inherited from class io.getstream.video.android.core.socket.PersistentSocket
cleanup, connect, createSocket, disconnect, getConnected, getConnectionId, getConnectionState, getErrors, getEvents, getReconnectTimeout, get_connectionState, onClosed, onClosing, onFailure, onInternetConnected, onInternetDisconnected, onMessage, onMessage, onOpen, reconnect, setConnected, setConnectionId, setReconnectTimeout -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SfuSocket
SfuSocket(String url, String sessionId, String token, SuspendFunction0<String> getSubscriberSdp, CoroutineScope scope, OkHttpClient httpClient, NetworkStateProvider networkStateProvider)
-
-
Method Detail
-
authenticate
Unit authenticate()
-
-
-
-