Member Junction
    Preparing search index...

    Global streaming service that manages PubSub subscriptions for all conversations.

    Maintains a single GraphQL subscription and routes updates to registered per-message callbacks, regardless of which conversation is currently visible. This ensures messages update correctly even when users navigate away and return.

    Usually accessed via ConversationsRuntime.Instance.Streaming.

    Index

    Constructors

    Properties

    CompletionEvents$: Subject<CompletionEvent> = ...

    Observable for components to subscribe to completion events in real-time. Emits enriched completion data once per agent finish.

    StreamReconnected$: Subject<void> = ...

    Fires when the push-status subscription is re-established after having dropped — never on the first successful subscribe.

    Events published while the subscription was down are gone: the server's topic is an in-memory PubSub with no replay, and the client's Subject is explicitly unbuffered. A listener must therefore reconcile against durable state rather than assume the stream resumed seamlessly. Consumed by ConversationLiveness (MJ #4222).

    TaskGraphEvents$: Subject<TaskGraphStreamEvent> = ...

    Observable for components to subscribe to durable task-graph step & workflow frames in real-time.

    Accessors

    Methods

    • Parameters

      • messageId: string

      Returns {
          callbackCount: number;
          connectionStatus: StreamingConnectionStatus;
          hasCallbacks: boolean;
          recentCompletion:
              | { agentRunId: string; conversationDetailId: string; timestamp: Date }
              | undefined;
      }

      Use GetDiagnosticSnapshot.

    • Diagnostic snapshot for a specific message — used by debugging tools to dump live in-memory state.

      Parameters

      • messageId: string

      Returns {
          callbackCount: number;
          connectionStatus: StreamingConnectionStatus;
          hasCallbacks: boolean;
          recentCompletion:
              | { agentRunId: string; conversationDetailId: string; timestamp: Date }
              | undefined;
      }

    • Replay a recently completed event so a late-mounting component can pick it up. Returns undefined if no completion is in the 5-minute replay window.

      Parameters

      • conversationDetailId: string

      Returns { agentRunId: string } | undefined

    • Browser time (ms since epoch) at which the last push frame that names this message arrived.

      Covers a row with no MJ agent run to look up, such as one written by a host's own turn handler that reports progress through the same publisher.

      Parameters

      • conversationDetailId: string

      Returns number | undefined

      undefined when nothing has named the message, or it has completed.

    • Browser time (ms since epoch) at which the last push frame for this agent run arrived: progress, streamed content, or the server's liveness pulse.

      This is the reliable "still running" signal. The run object inside progress frames is the server's in-memory entity, whose timestamps do not move until the run ends.

      Parameters

      • agentRunId: string

      Returns number | undefined

      undefined when nothing has been heard for the run, or it has completed.