GraphReFlyTS

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

ParameterTypeDescription
boundaryNestIngressBoundary<THost, TPayload>boundary value used by the helper.
optsNestBoundaryDecoratorOptions<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