code: function(changedModel, options) {
          options = options || {};
  
          // Don't persist unless the model is different
          if (_.isEqual(JSON.parse(JSON.stringify(model)), JSON.parse(JSON.stringify(model.syncMonitor.get('model'))))) {
            logger.info('modelListener.noChanges', t.className, model.toJSON());
            return;
          }
  
          // Disconnect listeners if the ID changes
          if (model.get('id') !== modelId) {
            logger.info('modelListener.alteredId', t.className, model.toJSON());
            return disconnectListeners();
          }
  
          // Persist changes to the server (unless the changes originated from there)
          if (!options.isSyncChanging) {
            logger.info('modelListener.saving', t.className, model.toJSON());
            model.save();
          }
        }
docs: Client-side listener - for persisting changes to the server