mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-15 07:46:08 +00:00
Implement instant websocket room updates
This commit is contained in:
@@ -12,6 +12,10 @@ use Illuminate\Validation\ValidationException;
|
||||
|
||||
class RoomParticipationService
|
||||
{
|
||||
public function __construct(
|
||||
private readonly RoomRealtimeStateService $realtimeState,
|
||||
) {}
|
||||
|
||||
public function findByJoinCode(string $joinCode): ?Room
|
||||
{
|
||||
if ($joinCode === '') {
|
||||
@@ -92,6 +96,7 @@ class RoomParticipationService
|
||||
$room->id,
|
||||
$room->state_version,
|
||||
RoomStateChange::PlayerJoined,
|
||||
$this->realtimeState->for($room),
|
||||
);
|
||||
|
||||
return [$room, $player];
|
||||
|
||||
Reference in New Issue
Block a user