function findPeer() {

    // Display message.
    callConnectedUI(false, 'Finding Call.');

    // Hang up on an existing call if present
    hangupCall();

    // Ensure services are connected.
    if (socketConnected && peerConnected) {
        // When client is ready to call.
        onClientReady();

        // Send peerid and find call partner.
        socket.emit('peerid', peerjs.id);
    }
}
/**
 * Find a peer to call with.
 *
 * @return void
 */
Find a peer to call with.
@return void
Find a peer to call with . @return void
function findPeer() {
    callConnectedUI(false, 'Finding Call.');
    hangupCall();
    if (socketConnected && peerConnected) {
        onClientReady();
        socket.emit('peerid', peerjs.id);
    }
}
function findPeer ( ) { callConnectedUI ( false , 'Finding Call.' ) ; hangupCall ( ) ; if ( socketConnected && peerConnected ) { onClientReady ( ) ; socket . emit ( 'peerid' , peerjs . id ) ; } }
Find a peer to call with.
Find a peer to call with .
// Display message. // Hang up on an existing call if present // Ensure services are connected. // When client is ready to call. // Send peerid and find call partner.