GraphReFlyTS

API Reference

createGraphWsBridge()

Create a host-private WebSocket bridge instance without scanning the Nest container.

Import

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

Signature

function createGraphWsBridge(opts: GraphWsBridgeOptions<THost> = {}): GraphWsBridge<THost>

Parameters

ParameterTypeDescription
optsGraphWsBridgeOptions<THost>Options that configure the helper.

Returns

A GraphWsBridge<THost> value.

Example

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

Source

packages/ts/src/adapters/nestjs/websockets.ts