function peerjsConnectedUI() {
    // UI: Peerjs connection status.
    $('#peerjs-connected').addClass('badge-success').removeClass('badge-danger');
    $('#peerjs-connected').text('Connected');
    $('#my-peerjs-id').text(peerjs.id);
}
/**
 * PeerJS: Helper function to toggle the UI when peerjs is connected.
 *
 * @uses PeerJS
 * @return void
 */
Helper function to toggle the UI when peerjs is connected.
@uses PeerJS
@return void
Helper function to toggle the UI when peerjs is connected . @uses PeerJS @return void
function peerjsConnectedUI() {
    $('#peerjs-connected').addClass('badge-success').removeClass('badge-danger');
    $('#peerjs-connected').text('Connected');
    $('#my-peerjs-id').text(peerjs.id);
}
function peerjsConnectedUI ( ) { $ ( '#peerjs-connected' ) . addClass ( 'badge-success' ) . removeClass ( 'badge-danger' ) ; $ ( '#peerjs-connected' ) . text ( 'Connected' ) ; $ ( '#my-peerjs-id' ) . text ( peerjs . id ) ; }
PeerJS: Helper function to toggle the UI when peerjs is connected.
PeerJS : Helper function to toggle the UI when peerjs is connected .
// UI: Peerjs connection status.