Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / portStreamKey

Function: portStreamKey()

portStreamKey(nodeId, portId): string

Defined in: packages/fireflow-types/src/flow/execution/runtime/stream-bridge.ts:300

Stream key for port-level frontend streaming. Uses md5 hash for compact keys (same pattern as DBOSContextService.executeBranch). Nodes call context.publishPortStream() with this key; the frontend subscribes to it.

Parameters

nodeId

string

portId

string

Returns

string

Licensed under BUSL-1.1