API Reference
GraphWsAck()
D488 WebSocket acknowledgement egress decorator over an existing reply-correlated node.
Import
import { GraphWsAck } from "@graphrefly/ts/adapters/nestjs";
Signature
function GraphWsAck(
ackNode: Node<NestReplyEnvelope<TPayload>>,
opts: { readonly bindingId: string; readonly order?: number },
): GraphMethodDecorator
Parameters
| Parameter | Type | Description |
|---|---|---|
ackNode | Node<NestReplyEnvelope<TPayload>> | ack node value used by the helper. |
opts | { readonly bindingId: string; readonly order?: number } | Options that configure the helper. |
Returns
A GraphMethodDecorator value.
Example
import { GraphWsAck } from "@graphrefly/ts/adapters/nestjs";
Source
packages/ts/src/adapters/nestjs.ts