Skip to content

Connectum API Reference / @connectum/core / CreateCatalogClientOptions

Interface: CreateCatalogClientOptions ​

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

Options for createCatalogClient.

Properties ​

catalog ​

catalog: ServiceCatalog

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

The service catalog (a Record<typeName, DescService>) that backs typed dispatch — the same object passed to createServer({ catalog }).


outgoingInterceptors? ​

optional outgoingInterceptors?: readonly Interceptor[]

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

Client-side interceptors applied once around every call/stream this client makes, outside the interceptors of the resolver's transport. Empty by default: a standalone client has no Server to inherit a chain from, and a resolver whose transports already carry the application's policy keeps working unchanged. Do not configure the same policy here and on the resolver's transport — the framework cannot see inside a Transport and would run it twice.


resolver ​

resolver: RemoteResolver

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

Maps a target service typeName to a ConnectRPC Transport. Required: unlike a Server, a catalog client has no in-process/local path, so every call is routed through the resolver. A resolver that returns null for a target makes that call fail with Code.Unavailable.