Secure WebSocket

This commit is contained in:
Marks Polakovs 2020-03-30 20:48:43 +02:00 committed by GitHub
parent d55ceee821
commit 4b901c4424

View file

@ -42,7 +42,7 @@ export class WebRTCStreamer extends Streamer {
}
async start(): Promise<void> {
this.ws = new WebSocket("ws://audio.ury.org.uk/webstudio/stream"); // TODO
this.ws = new WebSocket("wss://audio.ury.org.uk/webstudio/stream");
this.ws.onopen = e => {
console.log("WS open");
this.onStateChange(this.mapStateToConnectionState());