Send a request on the network and resolve the response contents.

  • Type Parameters

    • TParam extends unknown[]
    • TReturn

    Parameters

    • requestType: `${string}:${string}`

      The type of request

    • Rest...args: TParam

      Arguments to send in the request (put in request.contents)

    Returns Promise<TReturn>

    Promise that resolves with the response message