Bug: Broadcasting of "user-connected" event is done only for previous nodes. If a connection is made in future, it won't have any record of previous users. So if I close one of my previous connection, the stream of that user on connections that have been made after that connection will be freeze and user needs to refresh the browser to clear it.
Bug: Broadcasting of "user-connected" event is done only for previous nodes. If a connection is made in future, it won't have any record of previous users. So if I close one of my previous connection, the stream of that user on connections that have been made after that connection will be freeze and user needs to refresh the browser to clear it.
peers[userId] will show undefined behaviour since peers don't have record of previous connections.