static/src/whiteboard.js
/**
     * Update loop for sending lines to the server
     * or updating the client to any lines made by
     * other users.
     */
Update loop for sending lines to the server
or updating the client to any lines made by
other users.
Update loop for sending lines to the server or updating the client to any lines made by other users .
updateServer(){
        if(!this.waiting_for_server){
            socket.emit('send-drawing', JSON.stringify(this.lines_to_send));
            this.waiting_for_server = true;
        }
        setTimeout(this.updateServer.bind(this), 1000);
    }
updateServer ( ) { if ( ! this . waiting_for_server ) { socket . emit ( 'send-drawing' , JSON . stringify ( this . lines_to_send ) ) ; this . waiting_for_server = true ; } setTimeout ( this . updateServer . bind ( this ) , 1000 ) ; }
Update loop for sending lines to the server
 or updating the client to any lines made by
 other users.
Update loop for sending lines to the server or updating the client to any lines made by other users .