wip
This commit is contained in:
parent
51232d6653
commit
e1eecbc4e2
|
|
@ -152,7 +152,14 @@
|
|||
y: data.peak_connections.y,
|
||||
mode: 'lines',
|
||||
line: {color: '#80CAF6'}
|
||||
}]);
|
||||
}], {
|
||||
margin: {
|
||||
l: 0,
|
||||
r: 0,
|
||||
b: 0,
|
||||
t: 50,
|
||||
pad: 4
|
||||
} });
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,9 @@ class ChannelManager
|
|||
public function getConnectionCount(string $appId): int
|
||||
{
|
||||
return collect($this->getChannels($appId))
|
||||
->sum->getSubscribedConnections();
|
||||
->sum(function ($channel) {
|
||||
return count($channel->getSubscribedConnections());
|
||||
});
|
||||
}
|
||||
|
||||
public function removeFromAllChannels(ConnectionInterface $connection)
|
||||
|
|
|
|||
Loading…
Reference in New Issue