Skip to content

httpConnect

function httpConnect(rawBaseUrl, options?): HttpRpcClient;

Defined in: src/client/connect.ts:166

Connect to a vgi-rpc server over HTTP. The returned client lazily introspects the server via vgi_rpc.Reflection.v1 (caching the result) on the first call and transparently handles zstd compression, authorization, and 413 request externalization.

Parameter Type
rawBaseUrl string
options? HttpConnectOptions

HttpRpcClient