lib/client/source/connecta.js
function createPeerInstance(id)
    {
        var peer              = new ConnectaPeer(id,stunUrls);
        peer.onIceCandidate   = gotIceCandidate;
        peer.onDescription    = createdDescription;
        peer.onRemoteStream   = gotRemoteStream;
        peer.onConnected      = onPeerConnected;
        peer.onMessage        = onPeerMessage;
        peer.onBytesMessage   = onBytesMessage;
        peer.onConnectionFail = onPeerFailed;
        peer.onClosed         = onPeerClose;
        peer.onError          = onPeerError;
        peer.onChannelState   = onPeerState;
        scope.peers[id]       = peer;
        
        peer.init();

        return peer;
    }
function createPeerInstance(id)
    {
        var peer              = new ConnectaPeer(id,stunUrls);
        peer.onIceCandidate   = gotIceCandidate;
        peer.onDescription    = createdDescription;
        peer.onRemoteStream   = gotRemoteStream;
        peer.onConnected      = onPeerConnected;
        peer.onMessage        = onPeerMessage;
        peer.onBytesMessage   = onBytesMessage;
        peer.onConnectionFail = onPeerFailed;
        peer.onClosed         = onPeerClose;
        peer.onError          = onPeerError;
        peer.onChannelState   = onPeerState;
        scope.peers[id]       = peer;
        
        peer.init();

        return peer;
    }
function createPeerInstance ( id ) { var peer = new ConnectaPeer ( id , stunUrls ) ; peer . onIceCandidate = gotIceCandidate ; peer . onDescription = createdDescription ; peer . onRemoteStream = gotRemoteStream ; peer . onConnected = onPeerConnected ; peer . onMessage = onPeerMessage ; peer . onBytesMessage = onBytesMessage ; peer . onConnectionFail = onPeerFailed ; peer . onClosed = onPeerClose ; peer . onError = onPeerError ; peer . onChannelState = onPeerState ; scope . peers [ id ] = peer ; peer . init ( ) ; return peer ; }
creates ConnectaPeer Instance and returns
creates ConnectaPeer Instance and returns