LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkstreamcontroller
    Module●Since v0.3

    controller

    Classes

    View source on GitHub
    class
    AsyncProtocolTransport

    Protocol implemented by async SSE and WebSocket transports.

    class
    EventStreamHandle

    Handle for one async filtered event stream.

    class
    StreamController

    Manages subscriptions and fan-out against one shared SSE connection.

    Stream controller: subscription registry and fan-out for AsyncThreadStream.

    StreamController manages the set of active subscriptions against one shared SSE connection, routing events from the shared stream to per-subscription queues. It is the centralised place for:

    • subscription registration / teardown
    • shared-stream lifecycle (open, rotate, close)
    • dedup of replayed events across rotations
    • fan-out from the shared stream to subscriber queues