eclipse-paho / eclipse-paho/paho.mqtt.javascript

subscribe() is synchronous/blocking on retained messages

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.