mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-29 15:42:18 +00:00
removing http replacement in protocol
This commit is contained in:
parent
c8fb59cfcf
commit
7a8518caf6
1 changed files with 1 additions and 1 deletions
|
@ -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(<App socket={socket} />, mount);
|
||||
|
|
Loading…
Reference in a new issue