Skip to content
PACKAGES

messageBus()

Creates a message bus.

import { messageBus } from "@graphrefly/ts/messaging";
function messageBus(
graph: Graph,
opts: MessageBusOptions<TTopic> = {},
): MessageBus<TTopic>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsMessageBusOptions<TTopic>Options that configure the helper.

The message bus result.

import { messageBus } from "@graphrefly/ts/messaging";

packages/ts/src/messaging/index.ts