Room invite / Peer invite / Private public peer / private transport / wsjs api
This commit is contained in:
parent
7e54c8b7c3
commit
c0d35eb113
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue