Function createUPProviderConnector

  • Install a global UPProvider inside of the particular window which will listen for client connections and establish them. It will fire up-channel-connected on the particular iframe if it's reachable. It will fire a local channelCreated event as well.

    Parameters

    • Optionalprovider: any

      the initial provider to proxy

    • OptionalrpcUrls: string | string[]

      rpc urls to give to the clients to locally connect for non eth_sendTransaction and so on.

    Returns UPProviderConnector

    The global provider and event sing for channelCreated events.