[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)
-
Modify the LivePlayHub to update the campaign data when a token is moved -
Create an API to return the chat history -
Onload fetch the chat history and populate the dice roller log -
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 by Marc Faulise