diff --git a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/Webgl/plugin/SimpleWeb.jslib b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/Webgl/plugin/SimpleWeb.jslib index 02e6b936a..b4a612090 100644 --- a/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/Webgl/plugin/SimpleWeb.jslib +++ b/Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/Webgl/plugin/SimpleWeb.jslib @@ -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);