[feature] add client limit

This commit is contained in:
Janis Meister
2023-06-30 13:18:37 +02:00
parent 4ec685bd75
commit f919b39548
2 changed files with 9 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ export default function App() {
<div className="App">
<Viewer
hideNonTalking={searchParams.get("hideNonTalking") === "true"}
clientLimit={searchParams.get("clientLimit") ? parseInt(searchParams.get("clientLimit") ?? "0") : 0}
clients={
clients.map((client) => {
if (client.channel?.id === currentChannel?.id && client.channel.connection.id === activeConnectionId) {