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-sdkstreamsync_controller
    Module●Since v0.3

    sync_controller

    Synchronous shared-stream fan-out controller for v3 thread streaming.

    Functions

    Classes

    View source on GitHub
    function
    compute_union_filter
    function
    filter_covers
    class
    SyncEventStreamHandle
    class
    SyncProtocolTransport
    class
    SyncStreamController

    Aggregate a set of subscription filters into one covering filter.

    Direct port of client/stream/index.ts:#computeUnionFilter.

    • Channels are unioned.
    • Namespaces: if any subscription omits namespaces (wildcard), the union is unscoped (omits the key). Otherwise, deduplicated union.
    • Depth: if any subscription omits depth (unbounded), the union is unbounded (omits the key). Otherwise, take the max. depth=0 is a valid bounded value — never omit when all subscriptions provide it.

    Whether coverer is a superset of target.

    Direct port of client/stream/index.ts:filterCovers. Depth coverage accounts for namespace-prefix offset: a scoped coverer needs enough depth to absorb the extra levels of any deeper target namespace prefix.

    Handle for one sync filtered event stream.

    Protocol implemented by sync SSE and WebSocket transports.

    Owns the sync shared SSE handle, subscription registry, and fan-out thread.