• React Hook that connects to the given Pixel on mount, and disconnect on dismount.

    Parameters

    • Optionalpixel: Pixel

      The Pixel to connect to, may be undefined.

    Returns [PixelStatus?, Error?]

    An array with the Pixel status and the last encountered error.