SocketclusterClientDotNet icon indicating copy to clipboard operation
SocketclusterClientDotNet copied to clipboard

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

Open QQ2287991080 opened this issue 3 years ago • 1 comments

dotnet version 6.0

image

socketcluster [email protected] ScClient [email protected]

QQ2287991080 avatar Jul 18 '22 07:07 QQ2287991080

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

DincaAndrei2410 avatar Nov 22 '23 12:11 DincaAndrei2410