resolve-subscribe-mqtt
v0.24.23
Published
An adapter resolve-redux uses to subscribe to events via the MQTT protocol.
Downloads
34
Readme
resolve-subscribe-mqtt
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()
})()