diff --git a/priv/frontend/src/components/App.js b/priv/frontend/src/components/App.js index 79dce85..f07231c 100644 --- a/priv/frontend/src/components/App.js +++ b/priv/frontend/src/components/App.js @@ -113,7 +113,10 @@ export default class App extends Component { connect () { log('connecting to ws') - const endpoint = (`${DOMAIN}/api/streaming`).replace('https', 'wss') + const endpoint = `${DOMAIN}/api/streaming` + .replace('https', 'wss') + .replace('http', 'ws') + this.websocket = new WebSocket(endpoint) this.websocket.onopen = () => {