diff --git a/app/javascripts/app.js b/app/javascripts/app.js index cbc29b1..9273a57 100644 --- a/app/javascripts/app.js +++ b/app/javascripts/app.js @@ -3,7 +3,7 @@ const ReactDOM = require("react-dom"); const App = require("javascripts/components/main"); const io = require("socket.io-client"); const socketUrl = window.location.protocol + "//" + window.location.hostname + ":"+ window.location.port; -const socket = io(socketUrl.replace(/^http/,'ws')); +const socket = io(socketUrl); module.exports = function (mount) { ReactDOM.render(, mount);