Skip to content

feat: support multiple subscribers for the same live session #9

@smallnest

Description

@smallnest

A single IMClaw session should be observable by multiple clients at the same time, such as CLI, web UI, and monitoring components.

Goals

  • Allow more than one client to subscribe to the same live session stream
  • Ensure event ordering remains stable for all subscribers
  • Avoid coupling session lifetime to a single WebSocket connection

Deliverables

  • Session stream fan-out design
  • Subscription management in gateway
  • Backpressure and disconnect handling
  • Tests for multi-subscriber behavior

Acceptance criteria

  • Multiple clients can observe the same session concurrently
  • One subscriber disconnecting does not terminate the session
  • Message ordering remains consistent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions