Skip to content

probeServerCapabilities()

@blobs/sdk v0.1.0


@blobs/sdk / transport / probeServerCapabilities

probeServerCapabilities(opts): Promise<ServerCapabilities>

Defined in: transport/probe.ts:63

Issues a one-shot GET /capabilities to discover what the server supports.

Falls back to BASELINE_CAPABILITIES on any failure (network error, 4xx/5xx, missing/empty transports, abort), so callers always get a usable result and can opportunistically upgrade when the server implements the endpoint.

Parameters

opts

ProbeOptions

Probe configuration.

Returns

Promise<ServerCapabilities>

The parsed server capabilities, or BASELINE_CAPABILITIES on failure.