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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final JoinCallResponseEvent connectMigrating(SuspendFunction0<<Error class: unknown class>> migration, Function1<CancellableContinuation<JoinCallResponseEvent>, Unit> invocation)
      JoinCallResponseEvent connect(Function1<CancellableContinuation<JoinCallResponseEvent>, Unit> invocation) Connect the socket, authenticate, start the healthmonitor and see if the network is online
      Unit authenticate()
      Unit onMessage(WebSocket webSocket, ByteString bytes) Invoked when a binary (type 0x2) message has been received.
      • Methods inherited from class io.getstream.video.android.core.socket.PersistentSocket

        cleanup, 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