diff --git a/app/net/client/prediction.js b/app/net/client/prediction.js index 1621b98..d4d8ebb 100644 --- a/app/net/client/prediction.js +++ b/app/net/client/prediction.js @@ -10,9 +10,6 @@ function onMessage(event) { onmessage = async (event) => { if (!connected) { const url = new URL(`wss://${event.data.host}/ws`) - if ('production' === process.env.NODE_ENV) { - url.protocol = 'ws:'; - } socket = new WebSocket(url.href); socket.binaryType = 'arraybuffer'; const {promise, resolve} = Promise.withResolvers(); diff --git a/app/net/client/remote.js b/app/net/client/remote.js index 2010988..e17b9c7 100644 --- a/app/net/client/remote.js +++ b/app/net/client/remote.js @@ -26,9 +26,6 @@ export default class RemoteClient extends Client { } else { const url = new URL(`wss://${host}/ws`) - if ('production' === process.env.NODE_ENV) { - url.protocol = 'ws:'; - } this.socket = new WebSocket(url.href); this.socket.binaryType = 'arraybuffer'; const onMessage = (event) => {