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
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | NestIngressOptions<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