@umbraco-cms/backoffice
    Preparing search index...

    Class UmbSignalRReconnectPolicy

    A SignalR retry policy that reconnects indefinitely with a capped backoff. The default withAutomaticReconnect() policy gives up after ~40 seconds, which leaves an idle backoffice (preview, server events) permanently disconnected.

    Implements

    • IRetryPolicy
    Index
    • Gets the delay before the next reconnect attempt, following the capped backoff schedule.

      Parameters

      • retryContext: RetryContext

        The context for the current retry, including the previous retry count.

      Returns number

      The delay in milliseconds before the next reconnect attempt (never null, so retries continue indefinitely).

      UmbSignalRReconnectPolicy