Skip to content

Connectum API Reference / @connectum/core / CatalogClient

Interface: CatalogClient

Defined in: packages/core/src/catalogClient.ts:67

A standalone, catalog-typed client. Exposes the SAME call (unary) and stream (server/client/bidi) surface as the handler Context, keyed off ConnectumCallMap/ConnectumStreamMap, without constructing a Server.

Properties

call

call: CatalogCall

Defined in: packages/core/src/catalogClient.ts:78

Invoke a unary service in the catalog over the resolver-supplied transport. With no augmentation of ConnectumCallMap this is statically uncallable — exactly as on the handler ctx.

Errors mirror ctx.call: no catalog / unknown service / unknown method / wrong kind → Code.FailedPrecondition/Code.Unimplemented; resolver returns nullCode.Unavailable; resolver throws → Code.Internal (cause preserved).


stream

stream: CatalogStream

Defined in: packages/core/src/catalogClient.ts:85

Open a streaming call to a service in the catalog over the resolver-supplied transport. Returns the same kind-specific factory as ctx.stream (server-streaming → AsyncIterable; client-/bidi-streaming → push handles).