Private
Public Access
1
0

chg: dev: change the default url to wss on frontend #3

This commit is contained in:
2019-10-28 22:16:26 +01:00
parent 2daab7140e
commit 1b5e87c033

View File

@@ -331,10 +331,7 @@ class MineSeeker extends React.Component {
connectWithWebsocket() { connectWithWebsocket() {
/** Create Websocket w/ Bahnhof.js */ /** Create Websocket w/ Bahnhof.js */
let websocket = WS.connect( let websocket = WS.connect(
// this.state.env === 'dev' (this.state.ssl === 'true' ? "wss" : "ws") + "://" + window.location.hostname + "/ws/"
// ? "ws://localhost:6450"
(this.state.ssl === 'true' ? "wss" : "ws") + "://" + window.location.hostname + ":6450/"
// : (this.state.ssl === 'true' ? "wss" : "ws") + "://mineseeker.splendidbear.org:6450"
); );
/** /**