Ask a question to get started
Enter to send•Shift+Enter new line
Strip the dynamic suffix after : from a namespace segment.
:
Whether event_namespace starts with prefix.
event_namespace
prefix
Segments compare literally first; if the prefix segment contains no :, the candidate is also compared after its dynamic suffix is stripped. Mirrors is_prefix_match in api/langgraph_api/protocol/namespace.py.
is_prefix_match
api/langgraph_api/protocol/namespace.py
Whether event_namespace matches any of prefixes within depth.
prefixes
depth
Map a protocol event's method to its subscription channel.
method
Returns None for unrecognized methods so new server-side channels (e.g. from extension transformers) don't break existing clients.
None
Whether event should be delivered for definition.
event
definition
Aggregate a set of subscription filters into one covering filter.
Direct port of client/stream/index.ts:#computeUnionFilter.
client/stream/index.ts:#computeUnionFilter
namespaces
depth=0
Whether coverer is a superset of target.
coverer
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.
client/stream/index.ts:filterCovers
Subscription matching: channel inference + namespace prefix filtering.
Direct port of libs/sdk/src/client/stream/subscription.ts from the JS SDK.
libs/sdk/src/client/stream/subscription.ts