Interface IRpcService

This describes an object that can perform RPCs.

interface IRpcService {
    call<T>(id: string, input: any): Promise<T>;
}

Methods

Methods

  • Calls an RPC function with the given ID and input.

    Type Parameters

    • T

    Parameters

    • id: string

      The ID of the RPC function to call.

    • input: any

      The input to the RPC function.

    Returns Promise<T>

    A promise that resolves to the output of the RPC function.