RPCClient.call

Send a Request object to the server.

Generally the only reason to use this overload is to send a request with a non-integral ID.

  1. Response call(string func, JSONValue params)
  2. Response call(Request request)
    class RPCClient(API, Transport = TCPTransport)
    if (
    is(API == interface) &&
    isTransport!Transport
    )

Parameters

request Request

The Request to send.

Examples

interface MyAPI { bool my_func(int[] values); }

auto client = RPCClient!MyAPI("127.0.0.1", 54321);
auto req = Request("my_id", "my_func", [1, 2, 3]);
auto response = client.call(req);

Meta