API Reference
decodeCanonicalWireEdgeFrame()
Decodes canonical wire edge frame bytes.
Import
import { decodeCanonicalWireEdgeFrame } from "@graphrefly/ts/adapters";
Signature
function decodeCanonicalWireEdgeFrame(bytes: Uint8Array): CanonicalWireEdgeFrame
Parameters
| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array | Canonical bytes to decode. |
Returns
The decoded canonical frame or envelope.
Example
import { decodeCanonicalWireEdgeFrame } from "@graphrefly/ts/adapters";
Source
packages/ts/src/adapters/bridge-protobuf.ts