https://github.com/atlantis-software/sails-hook-pubsub-offshore
https://github.com/atlantis-software/sails-hook-pubsub-offshore
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/atlantis-software/sails-hook-pubsub-offshore
- Owner: Atlantis-Software
- Created: 2016-11-30T16:06:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T09:08:47.000Z (almost 8 years ago)
- Last Synced: 2025-02-01T04:25:45.885Z (about 1 year ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sails-hook-pubsub-offshore
[](https://www.npmjs.com/sails-hook-pubsub-offshore)
[](https://travis-ci.org/Atlantis-Software/sails-hook-pubsub-offshore)
[](https://coveralls.io/github/Atlantis-Software/sails-hook-pubsub-offshore?branch=master)
[](https://nodesecurity.io/orgs/atlantis/projects/807d2725-4709-4f65-8a00-fdc0bc89da44)
[](https://david-dm.org/Atlantis-Software/sails-hook-pubsub-offshore)
Sails pubsub using offshore ORM
## Install
Install [sails-hook-orm-offshore](https://github.com/Atlantis-Software/sails-hook-orm-offshore) first:
```sh
$ npm install sails-hook-orm-offshore --save
```
Install this hook with:
```sh
$ npm install sails-hook-pubsub-offshore --save
```
#PubS: Following PubSub methods are prefixed with a underscore!
`PubSub Methods`
````js
Model._publishCreate();
Model._publishUpdate();
Model._publishDestroy();
Model._publishAdd();
Model._publishRemove();
Model._watch();
Model._unwatch();
Model._introduce();
Model._retire();
Model._room();
```
# Configuration
`.sailsrc`
```
"hooks": {
"blueprints": false,
"orm": false,
"pubsub": false
}
```