So I was trying to wrap my head around the question that do producers or consumers be disconnected/closed for whatever reasons even if the concerned transport is connected ?
Looking into observer events we have,
Now in Producer.ts and Consumers.ts in mediasoup-client and same for the mediasoup server side,
I could see these events emitted on either close() or transportClosed() for producers/consumers, which we already have control over or related events (transpportclose) are already subscribed to. So I am assuming that there isn’t any other case where these observer events would be emitted. Hence no way to know for an abrupt closure using observer events.
I am trying to figure out if
- Producers/Consumers will be closed without any events emitted (like an exception or failure) with the transport still connected ?
- If such a scenario is possible how would we possibly know that the producer/consumer is alive even with a ping/pong mechanism between client server to know the status of the concerned producer/consumer ?