findProtocolVersion
function findProtocolVersion(data): Promise<string | null>;Defined in: src/wire/public.ts:130
Return the application protocol_version stamped on a request body.
The twin of findStateToken. An intermediary that rewrites a request
must recover and re-stamp this (see writeRequest) so the backend’s
dispatch-boundary version check still sees the originating client’s version.
Returns null when absent or unparseable — a request that never carried one
is structurally exempt from the check.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data |
Uint8Array |
Returns
Section titled “Returns”Promise<string | null>
