You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: WebSocketTransport Re-use and Compatibility (#188)
* fix:Unity WebGL throws Error: "ReferenceError: Runtime is not defined"
It seams that in unity 2021.2 variable Runtime doesn't exist and can be replaced with Module['dynCall_*'].
In webSocket.jslib change all Runtime.dynCall('*1', *2, [*3, *4]) for Module['dynCall_*1'](*2, *3, *4)
* Updated web socket transport to not use static fields
* Reset started value on disconnect
* Fixed the flag for is started on shutdown
* Reset web socket client on shutdown
* Added catch statement to close socket
* Changed close on already closed to end quietly
* Fixed some errors with web socket client
* Fixed small syntax error
0 commit comments