Skip to content

Model toOthers() with simulated socket IDs #5

Description

@luisdalmolin

Problem

v0.5 preserves Laravel's socket exclusion metadata, but the simulator does not yet use it. A broadcast sent with toOthers() is therefore delivered back to the originating simulated page.

Proposed direction

Give each simulated Echo/Pusher session a stable socket ID and exclude a replay when the captured socket matches the target session.

Acceptance criteria

  • Each installed session exposes or internally owns a stable simulated socket ID.
  • A captured socket ID matching the target session produces an explicit excluded outcome rather than delivery.
  • Other sessions still receive the same captured broadcast.
  • broadcastToEveryone() remains deliverable to all subscribed sessions.
  • Multi-page browser coverage verifies originator exclusion and peer delivery.

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