Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 624 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 624 Bytes

we-plugin-sys-pubsub

We.js plugin to sync memory status between instances with pub and sub

Installation

we i we-plugin-sys-pubsub

API

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

Copyright and license

Copyright 2020+ Alberto Souza [email protected] and contributors , under the MIT license.