My online game crashing

my online game crashing, I send and receive positions with sockets. I do this in the update () method but I believe that so many things are sent and filed in such a short time that the position of the object that resides the data is not changed. and my pc crashed

if(player2===true){
socket.emit('posicion',{ 

         x:this.paddleizq.x,
         y:this.paddleizq.y
       });
       socket.on('posicion-other-player',function (posicion){
         x =posicion.x
         y =posicion.y
         
         this.paddleder.x = x
         this.paddleder.y = y
       });
    }else{
      socket.emit('posicion',{
        x:this.paddleder.x,
        y:this.paddleder.y
      })
      socket.on('posicion-other-player',function (posicion){
        x =posicion.x
        y =posicion.y
        
       this.paddleizq.x = x
       this.paddleizq.y = y
     })

    }