chg: dev: change the default url to wss on frontend #3
This commit is contained in:
@@ -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"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user