Refactor transportclose 6

This commit is contained in:
Sergiu Toma 2022-08-11 12:52:50 +03:00
parent 8f7b60c78a
commit 65b5b563ff

1
app.js
View File

@ -235,6 +235,7 @@ peers.on('connection', async socket => {
}) })
const closeRoom = (callId) => { const closeRoom = (callId) => {
console.log('closeRoom', callId);
// Close transport for producer/consumer // Close transport for producer/consumer
// https://mediasoup.org/documentation/v3/mediasoup-client/api/#Transport-methods // https://mediasoup.org/documentation/v3/mediasoup-client/api/#Transport-methods
producerTransport.close() producerTransport.close()