aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/App.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/App.js b/src/App.js
index 16a5a7d..2d4f40f 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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;