API Reference
wireBridgeProtobuf()
D498 focused canonical protobuf byte adapter over an existing semantic wireBridge bundle.
This helper owns no transport/session/retry policy and does not add wireBridge core options. Malformed bytes become graph-visible issue/invalid facts, never local protocol terminals.
Import
import { wireBridgeProtobuf } from "@graphrefly/ts/adapters";
Signature
function wireBridgeProtobuf(
graph: Graph,
bridge: WireBridgeBundle<WireBridgeProtobufData, WireBridgeProtobufData>,
opts: WireBridgeProtobufOptions = {},
): WireBridgeProtobufBundle
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
bridge | WireBridgeBundle<WireBridgeProtobufData, WireBridgeProtobufData> | bridge value used by the helper. |
opts | WireBridgeProtobufOptions | Options that configure the helper. |
Returns
A WireBridgeProtobufBundle value.
Example
import { wireBridgeProtobuf } from "@graphrefly/ts/adapters";
Source
packages/ts/src/adapters/bridge.ts