Stage 2 : Finish Alpha, Begin Beta #2

Merged
saqut merged 14 commits from alpha into stable 2022-11-27 18:59:22 +03:00
2 changed files with 17 additions and 2 deletions
Showing only changes of commit c0d35eb113 - Show all commits

View File

@ -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();
}

View File

@ -9,7 +9,7 @@
<body>
<script src="./wsjs.js"></script>
<script>
let wsjs = new WSJS({
/* let wsjs = new WSJS({
endpoint: "ws://localhost:8282"
});
let room = wsjs.room({
@ -64,7 +64,7 @@
});
peer.close();
*/