bugfixes, accessibility settings

This commit is contained in:
NoobishSVK
2024-05-20 21:45:09 +02:00
parent 42c528a480
commit 2314ba5d2a
14 changed files with 110 additions and 87 deletions
+1
View File
@@ -84,6 +84,7 @@ function resolveDataBuffer(data, wss) {
function kickClient(ipAddress) {
// Find the entry in connectedClients associated with the provided IP address
const targetClient = storage.connectedUsers.find(client => client.ip === ipAddress);
console.log(storage.connectedUsers);
if (targetClient && targetClient.instance) {
// Send a termination message to the client
targetClient.instance.send('KICK');