webSocketSession()
Create a graph-visible D133 WebSocket SessionBundle.
The convenience start/send/close methods publish command facts only; hidden session state is driven by the command node and graph-local EnvironmentDrivers.
Import
Section titled “Import”import { webSocketSession } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function webSocketSession( graph: Graph, request: WebSocketRequest, opts: WebSocketSessionOptions = {},): WebSocketSessionBundleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
request | WebSocketRequest | Request value to lower, route, or record. |
opts | WebSocketSessionOptions | Options that configure the helper. |
Returns
Section titled “Returns”A WebSocketSessionBundle value.
Example
Section titled “Example”import { webSocketSession } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/environment-websocket-session.ts