mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(SimpleWeb): scope websocket locally instead of globally
This commit is contained in:
parent
714f231d43
commit
c373f9f0e7
@ -39,7 +39,7 @@ function Connect(addressPtr, openCallbackPtr, closeCallBackPtr, messageCallbackP
|
||||
const address = UTF8ToString(addressPtr);
|
||||
console.log("Connecting to " + address);
|
||||
// Create webSocket connection.
|
||||
webSocket = new WebSocket(address);
|
||||
var webSocket = new WebSocket(address);
|
||||
webSocket.binaryType = 'arraybuffer';
|
||||
const index = SimpleWeb.AddNextSocket(webSocket);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user