• Open a websocket channel that the new device should connect to.

    Parameters

    • identity: Identity

      The existing identity

    • oddCrypto: Implementation

      A Crypto implementation from odd

    • opts: {
          code: string;
          host: string;
          query?: string;
      }

      Host, crypto, and a code for the websocket

      • code: string

        A unique ID for the websocket connection. Should be transmitted out of band to the new device.

      • host: string

        The address for your websocket

      • Optionalquery?: string

    Returns Promise<Identity>

    A promise that will resolve with a new identity instance that includes the new device, after we get a message from the new device.