function broadcastMessage(from, message) {
    if (userList.length === 0) {
        return;
    }

    userList.forEach(function(userSocket) {
        if (userSocket === from) {
            return;
        }
        userSocket.write(message);
    });
}
/*broadcast user message to all other online users */
broadcast user message to all other online users
broadcast user message to all other online users
function broadcastMessage(from, message) {
    if (userList.length === 0) {
        return;
    }
    userList.forEach(function(userSocket) {
        if (userSocket === from) {
            return;
        }
        userSocket.write(message);
    });
}
function broadcastMessage ( from , message ) { if ( userList . length === 0 ) { return ; } userList . forEach ( function ( userSocket ) { if ( userSocket === from ) { return ; } userSocket . write ( message ) ; } ) ; }
broadcast user message to all other online users
broadcast user message to all other online users