function socketConnectedUI() {
    $('#socket-connected').addClass('badge-success').removeClass('badge-danger');
    $('#socket-connected').text('Connected');
    $('#socket-id').text(socket.id);
}
/**
 * Socket.IO: Helper function to toggle the UI when socket.io is connected.
 *
 * @return void
 */
Socket.IO: Helper function to toggle the UI when socket.io is connected.
@return void
Socket . IO : Helper function to toggle the UI when socket . io is connected . @return void
function socketConnectedUI() {
    $('#socket-connected').addClass('badge-success').removeClass('badge-danger');
    $('#socket-connected').text('Connected');
    $('#socket-id').text(socket.id);
}
function socketConnectedUI ( ) { $ ( '#socket-connected' ) . addClass ( 'badge-success' ) . removeClass ( 'badge-danger' ) ; $ ( '#socket-connected' ) . text ( 'Connected' ) ; $ ( '#socket-id' ) . text ( socket . id ) ; }
Socket.IO: Helper function to toggle the UI when socket.io is connected.
Socket . IO : Helper function to toggle the UI when socket . io is connected .