#WebSocketSend Error

9 messages · Page 1 of 1 (latest)

twin python
#

Letting the game on a background tab on the browser, not connected to any server cause this error after some times:

Invoking error handler due to
TypeError: Cannot read properties of undefined (reading 'readyState')
at _WebSocketSend (https://play.midwar.io/Build/Midwar.framework.js:10:79520)

#

WebGL, Mirror 89

wispy ice
#

That's how browsers work. When minimized, or inactive tab, it will go into standby and if it was connected to server it will disconnect.

twin python
#

it wasn't connected to a server

wispy ice
#

try a dev build and see if you get more in the error when it happens

twin python
#

ok

wispy ice
#

Also make sure you don't have any wrong case - JS is case sensitive

twin python
wispy ice
#

If you've made a bunch of builds, clear your browser cache too