generators/app/templates/server/api/clientModelDoc(demo)/clientModelDoc.socket.js
function registerClientModelDocSockets(socket) {
  ClientModelDoc.schema.post('save', function (doc) {
    onSave(socket, doc);
  });

  ClientModelDoc.schema.post('remove', function (doc) {
    onRemove(socket, doc);
  });
}
function registerClientModelDocSockets(socket) {
  ClientModelDoc.schema.post('save', function (doc) {
    onSave(socket, doc);
  });

  ClientModelDoc.schema.post('remove', function (doc) {
    onRemove(socket, doc);
  });
}
function registerClientModelDocSockets ( socket ) { ClientModelDoc . schema . post ( 'save' , function ( doc ) { onSave ( socket , doc ) ; } ) ; ClientModelDoc . schema . post ( 'remove' , function ( doc ) { onRemove ( socket , doc ) ; } ) ; }
Register ClientModelDoc model change events on the passed socket
@param {socket.io} socket - The socket object to register the ClientModelDoc model events on
Register ClientModelDoc model change events on the passed socket