doghappy / socket.io-client-csharp

socket.io-client implemention for .NET
MIT License
729 stars 125 forks source link

Problem connecting Newtonsoft.Json #268

Closed Keeplod closed 2 years ago

Keeplod commented 2 years ago

var jsonSerializer = new NewtonsoftJsonSerializer(); jsonSerializer.OptionsProvider = () => new JsonSerializerSettings { ContractResolver = new DefaultContractResolver { NamingStrategy = new CamelCaseNamingStrategy() } }; client.JsonSerializer = jsonSerializer;

The compiler cannot find the NewtonsoftJsonSerializer() object, what should I do?(

doghappy commented 2 years ago

install SocketIOClient.Newtonsoft.Json