socket.io-client-csharp icon indicating copy to clipboard operation
socket.io-client-csharp copied to clipboard

Json Serializer Options

Open StephenHodgson opened this issue 1 year ago • 2 comments

It is great this library supports both System.Text.Json and Newtonsoft, but it is difficult to consume in some dev environments since System.Text.Json is unavailable.

Is there a way to decouple the serializer options into dedicated packages for people that cannot take a direct dependency on either one of the serializer options?

StephenHodgson avatar Feb 20 '24 00:02 StephenHodgson

Would also be really interested in this issue getting resolved. In the environment I'm working in I can not load System.Text.Json at all. Since this library requires it by default I can not use it and probably have to re-implement socket.io protocol handling myself or create a custom build version that defaults to Newtonsoft 🙃.

LunaLycan287 avatar Dec 31 '24 18:12 LunaLycan287

Would also be really interested in this issue getting resolved. In the environment I'm working in I can not load System.Text.Json at all. Since this library requires it by default I can not use it and probably have to re-implement socket.io protocol handling myself or create a custom build version that defaults to Newtonsoft 🙃.

Check out my fork. I ended up closing the PR here bc it wasn't accepted and there was too many changes to reintegrate

StephenHodgson avatar Dec 31 '24 19:12 StephenHodgson