Results 3 issues of pc

### Please describe the bug you are seeing This happens when I install it and run it again ![image](https://user-images.githubusercontent.com/103170141/170297151-7752164e-920f-4f85-9e92-72fa1e7c56b4.png) ### How can we best reproduce the bug? _No response_ ###...

bug
help wanted

This is the function I wrote according to the official document to listen to the closing of remote media streams, but this function was not triggered when the event occurred...

client

![image](https://github.com/peers/peerjs-server/assets/103170141/e580eb26-a2f5-4185-963f-462fd879be48) ![image](https://github.com/peers/peerjs-server/assets/103170141/966cacc8-4536-4693-873e-46e1271069be) I want to enable HTTPS. I have placed an SSL file in the directory and it cannot run after packaging. Please give me some help. Thank you

server