lib/client/source/connecta.js
function onPeerClose(peer)
    {
        var id = peer.id;
        scope.removePeer(peer);
        sendPeerClose(id);

        scope.dispatchEvent("peerDisconnected",id);
    }
function onPeerClose(peer)
    {
        var id = peer.id;
        scope.removePeer(peer);
        sendPeerClose(id);

        scope.dispatchEvent("peerDisconnected",id);
    }
function onPeerClose ( peer ) { var id = peer . id ; scope . removePeer ( peer ) ; sendPeerClose ( id ) ; scope . dispatchEvent ( "peerDisconnected" , id ) ; }
invoked when peer closes, this will remove peer from dictionary
invoked when peer closes this will remove peer from dictionary