Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 27, 2024
1 parent d3d65c7 commit 484215a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Protocols/Pusher/PusherPubSubIncomingMessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public function handle(string $payload): void
$event = json_decode($payload, associative: true, flags: JSON_THROW_ON_ERROR);

$application = unserialize($event['application']);
$except = app(ChannelManager::class)->for($application)->connections()[$event['socket_id']] ?? null;
$except = isset($event['socket_id']) ?
app(ChannelManager::class)->for($application)->connections()[$event['socket_id']] ?? null
: null;

match ($event['type'] ?? null) {
'message' => EventDispatcher::dispatchSynchronously(
Expand Down

0 comments on commit 484215a

Please sign in to comment.