This commit is contained in:
Alex Renoki 2020-08-24 12:43:59 +03:00
parent d6b6135d7c
commit 8e3a86d2ed
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ class WebSocketHandler implements MessageComponentInterface
{ {
if (! is_null($capacity = $connection->app->capacity)) { if (! is_null($capacity = $connection->app->capacity)) {
$connectionsCount = $this->channelManager->getConnectionCount($connection->app->id); $connectionsCount = $this->channelManager->getConnectionCount($connection->app->id);
if ($connectionsCount >= $capacity) { if ($connectionsCount >= $capacity) {
throw new ConnectionsOverCapacity(); throw new ConnectionsOverCapacity();
} }