lib/client/source/connecta.js
function onClientJoinedRoom(id)
    {
        if(scope._servConn.useRTC)
        {
            if(scope.hasWebRTCSupport())
            {
                var peer = getOrCreatePeer(id);
                peer.createOffer();
            }
            else
            {
                scope._servConn.sendRTCState(false,id);
            }
        }
        scope.dispatchEvent("clientJoinedRoom",id);
    }
function onClientJoinedRoom(id)
    {
        if(scope._servConn.useRTC)
        {
            if(scope.hasWebRTCSupport())
            {
                var peer = getOrCreatePeer(id);
                peer.createOffer();
            }
            else
            {
                scope._servConn.sendRTCState(false,id);
            }
        }
        scope.dispatchEvent("clientJoinedRoom",id);
    }
function onClientJoinedRoom ( id ) { if ( scope . _servConn . useRTC ) { if ( scope . hasWebRTCSupport ( ) ) { var peer = getOrCreatePeer ( id ) ; peer . createOffer ( ) ; } else { scope . _servConn . sendRTCState ( false , id ) ; } } scope . dispatchEvent ( "clientJoinedRoom" , id ) ; }
called when client joined in room, if rtc enabled and browser has support of rtc, creates offer and sends to peer by sending sdp string to server, else notifies server to add connection in fallback list
called when client joined in room if rtc enabled and browser has support of rtc creates offer and sends to peer by sending sdp string to server else notifies server to add connection in fallback list