kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
Apache License 2.0
764 stars 273 forks source link

Messages from WebSocket4Net to server arrive fragmented #71

Open nicolasr75 opened 7 years ago

nicolasr75 commented 7 years ago

I want to send some JSON content from a C# client to an ASP.NET Core server. As my message size increased I suddenly noticed that the receiving JSON parser fails on almost every message because the original JSON strings get broken up into multiple messages. What is the solution for this problem?

kerryjiang commented 7 years ago

It is not supposed. If you can leave some code which can reproducet this issue, that would be great.

nicolasr75 commented 7 years ago

Ok, that's good to know. Do you think it may be a problem of the receiving ASP.NET Core server? I maybe should check with Wireshark where the data get broken up. My application is already quite large, I will see if I can create a smaller project and show the code.