diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/App.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -143,10 +143,10 @@ class App extends Component { } _connectWebsocket() { - let webSocketProto = window.location.protocol === "https" ? "wss" : "ws" + let webSocketProto = window.location.protocol === "https:" ? "wss:" : "ws:" let host = window.location.host // let host = "shinypi:3001" - this._websocket = new WebSocket(`${webSocketProto}://${host}/ws`) + this._websocket = new WebSocket(`${webSocketProto}//${host}/ws`) this._websocket.onmessage = this._onMessage this._websocket.onopen = this._onOpen this._websocket.onclose = this._onClose @@ -260,4 +260,4 @@ class App extends Component { } } -export default App;
\ No newline at end of file +export default App; |