diff --git a/web/static/js/modules/websocket.js b/web/static/js/modules/websocket.js index b9f017c..1c34e5f 100644 --- a/web/static/js/modules/websocket.js +++ b/web/static/js/modules/websocket.js @@ -39,7 +39,8 @@ export class GsWebSocket { */ sendDescription(localDescription, stream, quality) { if (this.socket.readyState !== 1) { - console.log("WebSocket not ready to send data"); + console.log("Waiting for WebSocket to send data..."); + setTimeout(() => this.sendDescription(localDescription, stream, quality), 100); return; } this.socket.send(JSON.stringify({