[MISC] tried to send the message to the current lobby, didn't work.

This commit is contained in:
Dogukan
2020-10-21 20:43:28 +02:00
parent 74f8e868f6
commit a4e45b1a6b
5 changed files with 28 additions and 19 deletions

View File

@@ -120,15 +120,9 @@ namespace Server.Models
Debug.WriteLine("[SERVERCLIENT] User name: {0}\t User message: {1}", textUsername, textMsg);
dynamic dataPacket = new
{
username = textUsername,
message = textMsg
};
// todo handle sending to all except this user the username and message to display in chat
//serverCom.SendToAllExcept();
serverCom.sendToAll(JSONConvert.GetMessageToSend(JSONConvert.MESSAGE, dataPacket));
serverCom.SendToLobby(User.Lobby,payload);
Debug.WriteLine("Payload has been sent!");
break;
case JSONConvert.LOBBY: