Documentation
    Preparing search index...
    • Repeatedly attempts to connect a Pixel die using an exponential back off strategy. It stops trying to connect once it has reached the given number of retries.

      We recommend using this function to connect to a Pixel rather than calling directly the Pixel.connect function.

      Parameters

      • pixel: Pixel

        The Pixel to connect to.

      • Optionalopt: {
            onWillRetry?: (
                delay: number,
                retriesLeft: number,
                error: unknown,
            ) => void;
            retries?: number;
        }
        • OptionalonWillRetry?: (delay: number, retriesLeft: number, error: unknown) => void

          Called before scheduling a retry.

        • Optionalretries?: number

          Number of retries before aborting.

      Returns Promise<void>

      By default it will attempt to connect up to 3 times.