LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Ui
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Utils
  • Server
  • Stream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
UiClientAuthReactLoggingReact UiUtilsServerStream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphstreamisStreamChannel
Function●Since v0.3

isStreamChannel

@langchain/langgraph/stream — backend toolkit for the v2 streaming protocol.

This entrypoint collects the primitives needed to build a custom transport or server on top of the Agent Streaming Protocol:

  • StreamChannel — an append-only, buffered event log with independent replay cursors, for buffering events and fanning them out to multiple subscribers.
  • convertToProtocolEvent — turns raw streamEvents (v3) payloads into canonical ProtocolEvents.
  • inferChannel / matchesSubscription — map an event to its Channel and decide whether a buffered event should be delivered for a given subscription filter (with optional since replay cursor).
  • SUPPORTED_CHANNELS / isSupportedChannel — the recognized channel set and a guard for validating subscription requests.

These are intentionally transport-agnostic: pair them with SSE, WebSocket, or any custom framing to expose a graph over the protocol.

Copy
isStreamChannel(value: unknown): value is EventLog<unknown>

Parameters

NameTypeDescription
value*unknown
View source on GitHub