GraphReFlyTS

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

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
bridgeWireBridgeBundle<WireBridgeProtobufData, WireBridgeProtobufData>bridge value used by the helper.
optsWireBridgeProtobufOptionsOptions that configure the helper.

Returns

A WireBridgeProtobufBundle value.

Example

import { wireBridgeProtobuf } from "@graphrefly/ts/adapters";

Source

packages/ts/src/adapters/bridge.ts