Open chaojian-zhang opened 9 months ago
It is more so a computer processing limitation. Entirely depends on the server/computer you use. Server level speeds max at about 2.5-10 mbs download/upload on reliable transmissions depending on the server. Unreliable can peak higher but it will cause a huge bottleneck on messages coming in/out... That is also with 20-60 dollar servers on Linode
If you use Unity, you can scale the devices max in/out speeds by the average FPS, for example a mobile device can do at max 1.5-3 mbs per second before bottlenecking
First of all, thanks for the great library! It works flawlessly for simple stuff and is a great starting point for getting feet wet with WebSockets or when I don't want to deal with all the nitty grittiness on my own. Besides what others say, I haven't run into performance problems so far - probably because I don't have that many client connections at the same time. On the other hand, the lack of proper net standard and .Net core support really makes this library less safe to use because Visual Studio is constantly warning about incompatibility issue.
I have seen quite a few other issues mentioning this issue (https://github.com/sta/websocket-sharp/issues/727, https://github.com/sta/websocket-sharp/issues/702, https://github.com/sta/websocket-sharp/issues/614, https://github.com/sta/websocket-sharp/issues/550, https://github.com/sta/websocket-sharp/issues/332, https://github.com/sta/websocket-sharp/issues/77), but I think I will start my own thread, as a mark for NOT using this library moving forward. At this moment, based on observations of issues above - there are barely any reply whatsoever - I think the original author of this library definitely do not have the capacity to maintain this library further or dealing with any of those mentioned issues. I advise future seekers either participate or contribute to this library, or maybe it's better to move elsewhere and implement their own library.
The key issue I am having right now is the library cannot handle large messages - try below for server and client:
It works well for
1000
but will not work for10000
iterations, which is around 2Mb text data.