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