diff --git a/public/main.js b/public/main.js index 2bc9ef3..aa90084 100644 --- a/public/main.js +++ b/public/main.js @@ -1,6 +1,6 @@ if (!window.mySocket) { const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'; - window.mySocket = new WebSocket(`${wsProtocol}://${window.location.host}/user`); + window.mySocket = new WebSocket(`${wsProtocol}//${window.location.host}/user`); window.mySocket.onopen = function(event) { console.log('WebSocket is open now.');