Detecting when publisher stops streaming on subscriber side

I’m struggling to work out what event i need to catch on the subscriber side to detect when the publisher stops streaming.

streamDestroyed event for the Session object: SessionEventMap | OpenVidu Browser - v2.22.0

Interface EventMap is the parent of all available events in openvidu-browser. Inheriting from it there are SessionEventMap, StreamManagerEventMap and PublisherEventMap.