diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/App.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -143,8 +143,9 @@ class App extends Component { } _connectWebsocket() { - let webSocketProto = window.location.protocol === "https" ? "wss" : "ws" - this._websocket = new WebSocket(`${webSocketProto}://${window.location.host}/ws`) + let webSocketProto = window.location.protocol === "https:" ? "wss:" : "ws:" + // let webSocketProto = "wss" + this._websocket = new WebSocket(`${webSocketProto}//${window.location.host}/ws`) this._websocket.onmessage = this._onMessage this._websocket.onopen = this._onOpen this._websocket.onclose = this._onClose |