Skip to content

describeProtocol

function describeProtocol(target, name): Promise<ServiceDescription>;

Defined in: src/client/introspect.ts:544

Describe one hosted protocol, over a client the caller already holds.

Two round trips on target’s connection: list_protocols (for the server identity the description carries, and to tell “no reflection” apart from “no such protocol”), then describe(name). The connection rules are those of listProtocols.

Parameter Type Description
target RpcClient -
name string The protocol’s wire name, as listProtocols reports it.

Promise<ServiceDescription>

The server does not host reflection.

The server does not host name (errorKind "protocol_not_supported"), answered with another error, or the transport failed.