[Story] Campaign Channels limit player-player interactions to within campaigns

User Story

As a player, my interactions in one campaign are not seen in another campaign.

Details

Currently, all messages are transmitted to all logged-in players. State changes should be filtered by campaign, so only players in a given campaign's live session should receive those messages.

Explicitly out of scope:

  • Persisting state changes
  • Populating a campaign-specific initial state (covered by #48 (closed)).

Security concerns

Any messages received from a client should be validated to confirm they are an Owner or Player in the campaign.

Acceptance Criteria

  • Players in two campaigns don't see token movement nor dice rolls from the other campaign
  • Players in the same campaigns do see token movement and dice rolls from the other players

Suggested Steps

(draft, needs more than this! Copied from 48)

  1. Modify the LivePlayHub to update the campaign data when a token is moved
  2. Create an API to return the chat history
  3. Onload fetch the chat history and populate the dice roller log
  4. Modify the LivePlayHub to log dice rolls to the chat log

Stages

  • Planned accepted
  • Code Complete
  • Contains tests
  • Documentation updated
  • Contains log changes
  • Analytics included
  • Deployed to edge
  • Announced
Edited Apr 08, 2020 by Marc Faulise
Assignee Loading
Time tracking Loading