Skip to content

Replay captured broadcasts into multiple browser sessions #9

Description

@luisdalmolin

Problem

captureBroadcasts() currently captures and replays into the session that initiated the capture. Realtime applications commonly need to verify the same server broadcast across bidder, monitor, and operator pages.

Proposed direction

Separate captured broadcasts from page-specific replay results so one immutable batch can be replayed into multiple RealtimeSession instances.

$batch = $bidder->captureBroadcasts(fn () => $action->handle(...));

$monitorReplay = $monitor->replay($batch);
$operatorReplay = $operator->replay($batch);

Acceptance criteria

  • A captured batch can be replayed into another session without rerunning application code.
  • Each replay returns its own per-channel delivery outcomes.
  • Replaying into one session does not mutate previous replay results.
  • Public, private, and presence channel identifiers remain normalized by the target driver.
  • Browser coverage exercises at least two real Echo/Pusher sessions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions