eclipse-paho / eclipse-paho/paho.mqtt.javascript
subscribe() is synchronous/blocking on retained messages
Open
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 466
- PR merge metrics
- No merged PRs in 30d
Description
It appears that `Paho.MQTT.Client.subscribe()` method will block until all of the retained messages have been received.
Subscribing to a wildcard topic with about 40 retained messages will cause Paho to block everything for about 5 seconds.
Is there a way to subscribe that is nonblocking/async? Or can I run Paho in a web worker?
Contributor guide
Assessment
This issue has not been assessed yet.