@capgo/capacitor-mqtt
MQTT connect, subscribe, and publish from Capacitor.
Overview
Section titled “Overview”Bridge IoT dashboards and live ops tools with a native MQTT client while your WebView stays in the foreground.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native client |
| Android | Yes | Native client |
| Web | No | connect() and subscribe() throw on Web |
Core Capabilities
Section titled “Core Capabilities”connectdisconnectsubscribepublish
Public API
Section titled “Public API”| Method | Description |
|---|---|
connect | See the source definitions for current behavior. |
disconnect | See the source definitions for current behavior. |
subscribe | See the source definitions for current behavior. |
publish | See the source definitions for current behavior. |
addListener | See the source definitions for current behavior. |
addListener | See the source definitions for current behavior. |
addListener | See the source definitions for current behavior. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-mqtt.
Keep going from @capgo/capacitor-mqtt
Section titled “Keep going from @capgo/capacitor-mqtt”If you are using @capgo/capacitor-mqtt to plan native plugin work, connect it with Using @capgo/capacitor-mqtt for the native capability in Using @capgo/capacitor-mqtt, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.