API Reference
GraphWs()
D488 WebSocket message ingress decorator over an existing boundary.
Import
import { GraphWs } from "@graphrefly/ts/adapters/nestjs";
Signature
function GraphWs(
boundary: NestIngressBoundary<THost, TPayload>,
opts: NestBoundaryDecoratorOptions<THost, TPayload> = {},
): GraphMethodDecorator
Parameters
| Parameter | Type | Description |
|---|---|---|
boundary | NestIngressBoundary<THost, TPayload> | boundary value used by the helper. |
opts | NestBoundaryDecoratorOptions<THost, TPayload> | Options that configure the helper. |
Returns
A GraphMethodDecorator value.
Example
import { GraphWs } from "@graphrefly/ts/adapters/nestjs";
Source
packages/ts/src/adapters/nestjs.ts