SendMessage is now Json

This commit is contained in:
Patrick Hellebrand
2021-09-22 14:57:36 +02:00
committed by Felix Hartmann (PEA3-Fe-FI)
parent 7135486810
commit 0f305a216e
3 changed files with 20 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ namespace PolyChat.Models
Socket = socket;
Socket.On(SocketIOEvent.DISCONNECT, OnDisconnect);
Socket.On(SocketIOEvent.ERROR, (JToken[] Data) => OnError(Data));
Socket.On("message", (Action<JToken[]>)onMessage);
Socket.On("message", (Action<JToken[]>) onMessage);
//we are connected if we got here, inital packet was already received
Connected = true;