BF edgecase

This commit is contained in:
a6a2f5842 2025-09-18 18:07:15 +02:00
parent 4155e05d76
commit 2960c3a3f3
1 changed files with 10 additions and 0 deletions

View File

@ -124,6 +124,16 @@ class Handler implements MessageComponentInterface
])); ]));
} }
if (!$channel) {
return $connection->send(json_encode([
'event' => $message['event'] . ':error',
'data' => [
'message' => 'Channel not found',
'meta' => $message,
],
]));
}
$this->authenticateConnection($connection, $channel, $message); $this->authenticateConnection($connection, $channel, $message);
\Log::channel('websocket')->info('[' . $connection->socketId . ']@' . $channel->getName() . ' | ' . json_encode($message)); \Log::channel('websocket')->info('[' . $connection->socketId . ']@' . $channel->getName() . ' | ' . json_encode($message));