endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.2k stars 158 forks source link

WEBGL work 2 time quikly VS C# Websocket #73

Open webrobot1 opened 1 year ago

webrobot1 commented 1 year ago

Why it can be? Any C# websocket plugin work same. I have a big ping 0.2 sec at webgl (javascript websocket) but in C# version of game it two time more always (i try to test websocket sharp - it same)

May be it some settings in Unity ? Or how it can be

webrobot1 commented 1 year ago

I found - _tcpClient.NoDelayneed to be true in Websocket.cs

Can some body add this parametrs in repo ?

https://learn.microsoft.com/en-us/dotnet/api/system.net.sockets.tcpclient.nodelay?view=netframework-2.0#system-net-sockets-tcpclient-nodelay