sockets.forEach((peer) => {
if (peer.id !== me) {
peer.emit(events.types.ADD_PEER, events.addPeer(me, false));
socket.emit(events.types.ADD_PEER, events.addPeer(peer.id, true));
}
});
sockets.forEach((peer) => {
if (peer.id !== me) {
peer.emit(events.types.ADD_PEER, events.addPeer(me, false));
socket.emit(events.types.ADD_PEER, events.addPeer(peer.id, true));
}
});