Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wejs/we-plugin-sys-pubsub
We.js plugin to sync memory status between instances with pub and sub
https://github.com/wejs/we-plugin-sys-pubsub
Last synced: about 1 month ago
JSON representation
We.js plugin to sync memory status between instances with pub and sub
- Host: GitHub
- URL: https://github.com/wejs/we-plugin-sys-pubsub
- Owner: wejs
- Created: 2020-01-19T19:09:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:13:06.000Z (almost 2 years ago)
- Last Synced: 2024-04-08T09:07:22.807Z (9 months ago)
- Language: JavaScript
- Size: 978 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# we-plugin-sys-pubsub
We.js plugin to sync memory status between instances with pub and sub
## Installation
```sh
we i we-plugin-sys-pubsub
```## API
```js
we.sysPubsub.subscribe('cached-main-menu-changes', function(data) {
console.log('cached-main-menu-changes:data:', data);
// data will be { menuId: 10 }
});we.sysPubsub.publish('cached-main-menu-changes', {
menuId: 10
});
```## Links
> * We.js site: http://wejs.org
## Copyright and license
Copyright 2020+ Alberto Souza and contributors , under [the MIT license](https://github.com/wejs/we-core/blob/master/LICENSE.md).