Hello there,
WebGL “Simple WebSockets” plugin seems to be really slow at recieving / sending messages when window is not focused (it queues them up and executes way later after window gets focused, while somebody mentioned in comments on the plugin page that it doesn’t respond at all when not focused). This was not the case though, when I used socket.io with plain javascript and SendMessage external call. Any idea why this is is happening? I’m unsure if writing my own library would solve the problem, or is it something that unity doesn’t allow and I need to stick to plain javascript (I really need this to be hidden in wasm binary code).
Thanks in advance.
try turning on “run in background”