mqtt5-wasm
MQTT v5.0 WebAssembly client and broker for browser environments.
Features
- WebSocket transport - Connect to remote MQTT brokers
- In-tab broker - Run a complete MQTT broker in the browser
- MessagePort/BroadcastChannel - Inter-tab communication
- Broker bridging - Connect multiple in-browser brokers via MessagePort
- Full QoS support - QoS 0, 1, and 2
- Automatic keepalive - Connection health monitoring
Installation
npm (browser/bundler)
Cargo (Rust)
[]
= "0.2"
Build with wasm-pack:
Usage
import init from "mqtt5-wasm";
await ;
const client = ;
await client.;
await client.;
await client.;
Documentation
See the main repository for complete documentation and examples.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.