Class DefaultReconnectController

[[ReconnectController]] describes the status about the meeting session connection and makes decisions based on the controller implementation.

Implements

Constructors

Methods

  • Cancels any pending retry and disables reconnect. The cancel function supplied to the retryWithBackoff will be called if there was a pending retry.

    Returns void

  • Disables reconnect until the controller is next reset.

    Returns void

  • Switches the reconnect controller into a mode where it will only restart the peer connection instead of restarting the session starting with the signaling connection.

    Returns void

  • Indicates whether a connection attempt is already in progress.

    Returns boolean

  • Indicates whether the current connection attempt was the first.

    Returns boolean

  • Resets the ReconnectController to its default state.

    Returns void

  • Decides whether to retry the retryFunc after some amount of backoff depending on the controller.

    Parameters

    • retryFunc: () => void
    • cancelFunc: () => void

    Returns boolean

    Whether the retry will be attempted

  • Sets the last active external timestamp in milliseconds.

    Parameters

    • timestampMs: number

    Returns void

  • Returns whether only the peer connection should be restarted at this time.

    Returns boolean

    Whether only the peer connection should be restarted

  • Indicates that a connection attempt has started so that the reconnect deadline can be set.

    Parameters

    • isFirstConnection: boolean

      whether this is the first attempt to connect for this session

    Returns void