Skip to content

Server Reflection ​

You know a server's address, but do not have its .proto files. Reflection lets tools such as grpcurl ask that server for its service and message schemas.

Reflection setup, queries and exposure Reflection indexes mounted services and their imported descriptors once per successful materialization, shares the index across routers, and answers external tool queries at a known server address. Install + enable Reflection@connectum/reflection + peer dependenciesBefore start / first local clientPlaintext h2c: allowHTTP1: false Mounted-service snapshotApplication + earlier protocol servicesHealthcheck before Reflection is listedDeclared-only services excluded ExposurecontrolDisable or restrictSchema is exposedKnown address only Shared reflection indexv1 + v1alpha; HTTP and local routerscollectFileProtos: files + transitive importsFilename, symbol + extension indexesSetup retries if initial materialization fails Client toolsgrpcurl: list / describe / callbuf curl: Connect over HTTP/2Postman · Insomnia · WarthogTLS: trust the configured CA Reflection query resultsMounted services; descriptor importsUnknown query target: NOT_FOUNDUnset query: INVALID_ARGUMENTErrors leave the stream open The reflection service is reachable but does not include itself in its listing.
Reflection exposes schemas at one known address; it does not locate servers or replace the generated catalog. It lists every mounted service, wherever it stands in the protocols list. Disable or restrict production exposure.

Add it explicitly ​

With routes containing your service handlers:

typescript
import { createServer } from '@connectum/core';
import { Reflection } from '@connectum/reflection';

const server = createServer({
  services: [routes],
  allowHTTP1: false,
  protocols: [Reflection()],
});

After starting this plaintext HTTP/2 server, a reflection client can query it. Restrict reflection exposure in production: the schema itself may be sensitive.

Not the service catalog ​

The service catalog is generated contract knowledge used by your application. Reflection exposes mounted schema information to external tools at runtime.

Go deeper ​

Install reflection, run grpcurl and buf curl, and configure exposure.

Find a section from the full guide

The detailed material is preserved on a separate page. Earlier section links still work here.