Notes Per Minute

    resolve-subscribe-mqtt

    0.24.23 • Public • Published

    resolve-subscribe-mqtt

    npm version

    This package is a resolve-redux adapter used to subscribe to events via an MQTT protocol.

    Client Side

    import createClientAdapter from 'resolve-subscribe-mqtt';
     
    (async () => {
      const adapter = createClientAdapter({ origin, rootPath, url, appId, onEvent })
      
      await adapter.init()
    })() 

    Server Side

    import createServerAdapter from 'resolve-subscribe-mqtt';
     
    (async () => {
      const adapter = createServerAdapter({ server, getRootBasedUrl, pubsubManager, appId })
      
      await adapter.init()
    })() 

    Analytics

    Install

    npm i resolve-subscribe-mqtt

    DownloadsWeekly Downloads

    22

    Version

    0.24.23

    License

    MIT

    Unpacked Size

    30 kB

    Total Files

    18

    Last publish

    Collaborators

    • resolve-admin
    • reimagined-admin
    • vladihost
    • lykoi18