[*] 日常优化

This commit is contained in:
acgist
2023-08-10 07:39:56 +08:00
parent d8f6b4b5af
commit 6336bb4767
4 changed files with 70 additions and 47 deletions

View File

@@ -1693,7 +1693,11 @@ class Taoyao {
* @param {*} body 消息主体
*/
async mediaTransportWebrtcConnect(message, body) {
const { roomId, transportId, dtlsParameters } = body;
const {
roomId,
transportId,
dtlsParameters
} = body;
const room = this.rooms.get(roomId);
const transport = room?.transports.get(transportId);
if(transport) {