NativeWebSocket icon indicating copy to clipboard operation
NativeWebSocket copied to clipboard

WEBGL work 2 time quikly VS C# Websocket

Open webrobot1 opened this issue 3 years ago • 1 comments

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 avatar Nov 03 '22 14:11 webrobot1

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

webrobot1 avatar Nov 04 '22 16:11 webrobot1