Have ideas to improve npm?Join in the discussion! »

    we-plugin-sys-pubsub

    1.1.1 • Public • Published

    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 contato@albertosouza.net and contributors , under the MIT license.

    Keywords

    Install

    npm i we-plugin-sys-pubsub

    DownloadsWeekly Downloads

    4

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    44.3 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar