This commit is contained in:
acgist
2023-03-14 08:08:17 +08:00
parent 0cd054dbb0
commit dfec49892d
2 changed files with 5 additions and 4 deletions

View File

@@ -1343,7 +1343,7 @@ class Taoyao {
...webRtcTransportOptions,
webRtcServer: room.webRtcServer,
});
me.transportEvent("webrtc", roomId, transport);
self.transportEvent("webrtc", roomId, transport);
transport.clientId = clientId;
room.transports.set(transport.id, transport);
message.body = {
@@ -1371,6 +1371,7 @@ class Taoyao {
* @param {*} transport 通道
*/
transportEvent(type, roomId, transport) {
const self = this;
/********************* 通用通道事件 *********************/
transport.on("routerclose", () => {
console.info("transport routerclose", transport.id);