aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2018-05-17 21:13:19 +0000
committerMartin Ashby <martin@ashbysoft.com>2018-05-17 21:13:19 +0000
commitcb16d30a23ad140e6b82e26ab0f348eb22fc8244 (patch)
tree092a75151d9228325b91f64fdd7814f9d6046c09 /src
parenta49102fc3e2f210236e653d5cf42fa1d1231b30a (diff)
downloadunicornpaint-cb16d30a23ad140e6b82e26ab0f348eb22fc8244.tar.gz
unicornpaint-cb16d30a23ad140e6b82e26ab0f348eb22fc8244.tar.bz2
unicornpaint-cb16d30a23ad140e6b82e26ab0f348eb22fc8244.tar.xz
unicornpaint-cb16d30a23ad140e6b82e26ab0f348eb22fc8244.zip
Changed websocket connection for ssl proper.
Dockerfile copies build to correct location.
Diffstat (limited to 'src')
-rw-r--r--src/App.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/App.js b/src/App.js
index 1895e23..663b976 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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