From c0d35eb113281497e9860d4af608981488ee415d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdussamed=20ULUTA=C5=9E?= Date: Sat, 26 Nov 2022 23:30:47 +0300 Subject: [PATCH] Room invite / Peer invite / Private public peer / private transport / wsjs api --- Source/Services/Room.js | 15 +++++++++++++++ test.html | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Source/Services/Room.js b/Source/Services/Room.js index 924d3f4..37f12c9 100644 --- a/Source/Services/Room.js +++ b/Source/Services/Room.js @@ -481,6 +481,21 @@ addService(({ status : "success" }); } + case 'room/list':{ + let rooms = []; + for (const [id, {accessType,name,joinType,description}] of Room.rooms) if(accessType == "public"){ + rooms.push({ + name, + joinType, + description, + id + }) + } + end({ + type:'public/rooms', + rooms + }); + } default:{ next(); } diff --git a/test.html b/test.html index 595ed83..aaa0108 100644 --- a/test.html +++ b/test.html @@ -9,7 +9,7 @@