SendMessage is now Json

This commit is contained in:
Patrick Hellebrand
2021-09-22 14:57:36 +02:00
parent d25063bd87
commit 3b2b75df53
3 changed files with 21 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;