Function getConnectionUpdates

  • Register a handler to receive updates when the connection state changes

    Parameters

    • handler: ((connected: boolean) => void)
        • (connected): void
        • Parameters

          • connected: boolean

          Returns void

    Returns Promise<void>