• Get all sessions you set previously and their corresponding data.

    Parameters

    • payload: {
          apiEndpoint: string | URL;
          apiToken: string;
          protocol: "udp" | "tcp";
          timeout?: number;
      }
      • apiEndpoint: string | URL

        The API endpoint for authentication.

      • apiToken: string

        The API token for authentication.

      • protocol: "udp" | "tcp"
      • Optional timeout?: number

        optional timeout for the requests

    Returns Promise<{
        destination: string;
        forwardPath: {
            Hops?: number;
            IntermediatePath?: string[];
        };
        ip: string;
        mtu: number;
        port: number;
        protocol: "udp" | "tcp";
        returnPath: {
            Hops?: number;
            IntermediatePath?: string[];
        };
        target: string;
    }[]>

    An object with alias names as keys and the peerId associated with the alias.

    Throws

    An error that occurred while processing the request.