GraphReFlyTS

API Reference

GraphWsReply()

D488 WebSocket reply egress decorator over an existing reply-correlated node.

Import

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

Signature

function GraphWsReply(
	replyNode: Node<NestReplyEnvelope<TPayload>>,
	opts: { readonly bindingId: string; readonly order?: number },
): GraphMethodDecorator

Parameters

ParameterTypeDescription
replyNodeNode<NestReplyEnvelope<TPayload>>reply node value used by the helper.
opts{ readonly bindingId: string; readonly order?: number }Options that configure the helper.

Returns

A GraphMethodDecorator value.

Example

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

Source

packages/ts/src/adapters/nestjs.ts