GraphReFlyTS

API Reference

fromNestWs()

D474 later/optional WebSocket ingress. Kept thin for first-slice experiments.

Import

import { fromNestWs } from "@graphrefly/ts/adapters/nestjs";

Signature

function fromNestWs(
	graph: Graph,
	opts: NestIngressOptions<THost, TPayload> = {},
): NestIngressBoundary<THost, TPayload>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsNestIngressOptions<THost, TPayload>Options that configure the helper.

Returns

A NestIngressBoundary<THost, TPayload> value for the boundary or adapter.

Example

import { fromNestWs } from "@graphrefly/ts/adapters/nestjs";

Source

packages/ts/src/adapters/nestjs.ts