From ccf2d0350224934b67f87c1700298458957fc0f0 Mon Sep 17 00:00:00 2001 From: "Felix Hartmann (PEA3-Fe-FI)" Date: Tue, 21 Sep 2021 12:37:39 +0200 Subject: [PATCH] directly allow sending, when we are the server --- PolyChat/Models/Client.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PolyChat/Models/Client.cs b/PolyChat/Models/Client.cs index 2867a05..84a8fc3 100644 --- a/PolyChat/Models/Client.cs +++ b/PolyChat/Models/Client.cs @@ -139,10 +139,7 @@ namespace PolyChat.Models Console.WriteLine("Command recieved!" + Data[0]); }); - connection.On(SocketIOEvent.CONNECTION, () => - { - client.connected = true; - }); + client.connected = true; } //================================================================================== //Getter and Setter