-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
f8944ff
commit c7246c7
Showing
4 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters