popsub_sdk
The Rust client for PopSub, a WebSocket publish/subscribe broker with per-topic permissions, durable sessions and at-least-once delivery.
The client handles what every application would otherwise write itself: logging in and refreshing the token, reconnecting with backoff (and not reconnecting when the server's close code says not to), resubscribing without gaps, resending confirmed publishes without duplicating them, acknowledging QoS 1 messages, and making sure each (topic, seq) reaches the application once.
[]
= "0.1"
= { = "1", = ["macros", "rt-multi-thread"] }
use ;
async
Bodies that aren't text go through publish_bytes and publish_bytes_confirmed, and come back through Message::bytes.
What the delivery guarantees are, and where they stop, is in the repository's design document. Version 0.x: the protocol and this API may still change between minor versions.
Licensed under Apache-2.0.