PeerJS calls not closed properly

Description

Once a user connects to streaming.akustik.rwth-aachen.de and clicks "play", a VoIP call is initiated to the admin dashboard website using PeerJS. The logic for this is implemented in the frontend code.

When the user disconnects by e.g. closing the tab, the call should be closed properly, but this doesn't happen. It seems like the snippet

call.on("close", () => {
  call.close();
});

in line 496 in Client -> src -> HomeView.vue doesn't work as discussed in this issue on PeerJS' GitHub.

This doesn't seem to limit functionality for now, but the calls should be handled/closed properly nevertheless.

ToDo

Find a way to detect when a user closes their tab, send an event and automatically close the call on the frontend side of the admin dashboard