added template for receiving json chat message

This commit is contained in:
Sem van der Hoeven
2020-10-13 10:56:13 +02:00
parent 514460781b
commit 3dc641680d
5 changed files with 36 additions and 2 deletions

View File

@@ -85,5 +85,13 @@ namespace Server.Models
sc.sendMessage(message);
}
}
public void sendToAllExcept(string username, byte[] message)
{
foreach (ServerClient sc in serverClients)
{
if (sc.Username != username) sc.sendMessage(message);
}
}
}
}