public/js/lobby.js
// fetch all online users from server, and display them on screen
fetch all online users from server, and display them on screen
fetch all online users from server and display them on screen
function fetchOnlines(){
        $.get('/users', function(users){
            users = sortObject(users);
            renderOnlines(users);
        });
    }
function fetchOnlines ( ) { $ . get ( '/users' , function ( users ) { users = sortObject ( users ) ; renderOnlines ( users ) ; } ) ; }
fetch all online users from server, and display them on screen
fetch all online users from server and display them on screen