From 47b867074e7b455aba297544e97b415e3edc2621 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 10 Jun 2022 21:25:14 +0200 Subject: [PATCH] [mirotalksfu] - add sleep --- public/js/RoomClient.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index b6da54e3..dc990a95 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -2879,7 +2879,9 @@ class RoomClient { break; case 'screenStart': case 'screenStop': - this.socket.emit('peerAction', data); + setTimeout(() => { + this.socket.emit('peerAction', data); + }, 2000); break; } }