# a peer leave the room and what should do for the other peers's transports in the room

**URL:** <https://mediasoup.discourse.group/t/a-peer-leave-the-room-and-what-should-do-for-the-other-peerss-transports-in-the-room/1710>\
**Category:** mediasoup libraries\
**Created:** [September 8, 2020, 9:06am UTC](https://mediasoup.discourse.group/t/a-peer-leave-the-room-and-what-should-do-for-the-other-peerss-transports-in-the-room/1710 "2020-09-08T09:06:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lzxysf](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/lzxysf/32/520_2.png) [@lzxysf](https://mediasoup.discourse.group/u/lzxysf)\
**Post date:** [September 8, 2020, 9:06am UTC](https://mediasoup.discourse.group/t/a-peer-leave-the-room-and-what-should-do-for-the-other-peerss-transports-in-the-room/1710/1 "2020-09-08T09:06:08Z")

</div>

In a room on server side, a peer leave the room and the peer’s transports invoke close, then what should do.  
I mean what should do for the other peers’s transports which consume the closed peer’s producer or produce producer for the closed peer’s consumer.  
mediasoup destroy the invalid producers and consumers automatically or should the programer destory them manually.

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [September 8, 2020, 9:30am UTC](https://mediasoup.discourse.group/t/a-peer-leave-the-room-and-what-should-do-for-the-other-peerss-transports-in-the-room/1710/2 "2020-09-08T09:30:46Z")

</div>

Everything is documented:

> **[mediasoup :: API](https://mediasoup.org/documentation/v3/mediasoup/api/#Consumer-events)**
>
> Cutting Edge WebRTC Video Conferencing
