We.js Attribute plugin
Add suport to update one model value and add the Model.publishAttributeUpdate() pubsub action
API:
Publish one attribute update for subscribers:
sails.models[modelName].publishAttributeUpdate(record, data, req);
Avaible URLS:
attributeUpdated
Upload one model attribute and emit one socket.io message with the verb post /api/v1/:modelName/:id/:attribute
How to install:
In we.js project:
npm install we-plugin-attribute --save
NPM Info:
Copyright and license
Copyright 2013-2014 Alberto Souza alberto.souza.dev@gmail.com and contributors , under the MIT license.