code: function(entityData) {
      // Avoid updating components if the entity data received did not come from the current owner.
      if (entityData.lastOwnerTime < this.lastOwnerTime ||
            (this.lastOwnerTime === entityData.lastOwnerTime && this.data.owner > entityData.owner)) {
        return;
      }
  
      if (this.data.owner !== entityData.owner) {
        var wasMine = this.isMine();
        this.lastOwnerTime = entityData.lastOwnerTime;
  
        const oldOwner = this.data.owner;
        const newOwner = entityData.owner;
        if (wasMine) {
          this.onOwnershipLostEvent.newOwner = newOwner;
          this.el.emit(this.OWNERSHIP_LOST, this.onOwnershipLostEvent);
        }
        this.onOwnershipChangedEvent.oldOwner = oldOwner;
        this.onOwnershipChangedEvent.newOwner = newOwner;
        this.el.emit(this.OWNERSHIP_CHANGED, this.onOwnershipChangedEvent);
  
        this.el.setAttribute('networked', { owner: entityData.owner });
      }
      this.updateComponents(entityData.components);
    }
docs: /* Receiving updates