@aster-rpc/aster API Reference
    Preparing search index...

    Class ProxyClient

    Dynamic proxy client -- invokes RPC methods without local type definitions.

    Created via AsterClientWrapper.proxy("ServiceName"). Supports all four RPC patterns:

    const mc = client.proxy("MissionControl");

    // Unary
    const status = await mc.getStatus({ agent_id: "edge-7" });

    // Client streaming — pass an async iterable
    const result = await mc.ingestMetrics(asyncGenerator());

    // Server streaming — use .stream()
    for await (const entry of mc.tailLogs.stream({ level: "info" })) { ... }

    // Bidi streaming — use .bidi()
    const ch = mc.runCommand.bidi();
    await ch.open();
    await ch.send({ command: "ls" });
    for await (const r of ch) { ... }
    Index

    Constructors

    Constructors

    • Parameters

      • serviceName: string
      • transport: AsterTransport

      Returns ProxyClient