Skip to main content

Crate mqtt_client_wasm

Crate mqtt_client_wasm 

Source
Expand description

MQTT Client for WASM

This library provides a WebSocket-based MQTT client that works in WASM environments. It offers a low-level endpoint API similar to mqtt-endpoint-tokio, providing basic operations like send, recv, and close without high-level publish/subscribe abstractions.

Modules§

mqtt
platform
Platform abstraction layer

Macros§

log
Log a message
log_error
Log an error
log_warn
Log a warning

Structs§

MqttClient
MQTT client with clean channel-based design
MqttConfig
MQTT client configuration

Enums§

ConnectionState
Connection state
Error
UnderlyingLayerCommand
Underlying layer commands (sent TO transport FROM message loop)
UnderlyingLayerEvent
Underlying layer events (sent FROM transport TO message loop)

Traits§

UnderlyingLayerInterface
Abstract underlying layer interface for testing (pure message-passing)

Type Aliases§

Result