Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit e1eecbc

Browse files
committed
wip
1 parent 51232d6 commit e1eecbc

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

resources/views/dashboard.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,14 @@
152152
y: data.peak_connections.y,
153153
mode: 'lines',
154154
line: {color: '#80CAF6'}
155-
}]);
155+
}], {
156+
margin: {
157+
l: 0,
158+
r: 0,
159+
b: 0,
160+
t: 50,
161+
pad: 4
162+
} });
156163
});
157164
},
158165

src/WebSockets/Channels/ChannelManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public function getChannels(string $appId): array
4949
public function getConnectionCount(string $appId): int
5050
{
5151
return collect($this->getChannels($appId))
52-
->sum->getSubscribedConnections();
52+
->sum(function ($channel) {
53+
return count($channel->getSubscribedConnections());
54+
});
5355
}
5456

5557
public function removeFromAllChannels(ConnectionInterface $connection)

0 commit comments

Comments
 (0)