sacOO7 / SocketclusterClientDotNet

C# client for socketcluster framework in node.js
http://socketcluster.io/#!/
Apache License 2.0
69 stars 16 forks source link

Newtonsoft.Json.JsonReaderException: 'Unexpected character encountered while parsing value: #. Path '', line 0, position 0.' #34

Open QQ2287991080 opened 2 years ago

QQ2287991080 commented 2 years ago

dotnet version 6.0

image

socketcluster version@14.3.2 ScClient version@1.21

DincaAndrei2410 commented 11 months ago

Too be late, but I think the problem described here is because server is sending "#1" for the ping-pong stuff. When you construct the socket, you can pass protocol version 1 which in turn sets the _ping variable.

After, this should be hit and you won't have problems with deserialisation anymore