Create the subgraph discovery transformer.
Registering this transformer against a mux replaces the legacy
inline behavior that previously lived in StreamMux.push.
The mux no longer knows about the subgraph factory: instead, this
transformer is the single component that materializes stream
handles and announces them on _discoveries.
Marked as a NativeStreamTransformer so the projection is
treated as internal wiring (not merged into run.extensions and
not auto-forwarded via StreamMux.wireChannels).
createSubgraphDiscoveryTransformer<
TStream extends StreamHandle = StreamHandle
>(
mux: StreamMux,
options: SubgraphDiscoveryTransformerOptions<TStream>
): NativeStreamTransformer<SubgraphDiscoveryProjection<TStream>>| Name | Type | Description |
|---|---|---|
mux* | StreamMux | The mux whose |
options* | SubgraphDiscoveryTransformerOptions<TStream> | Factory and related wiring. |