davidepianca98 / KMQTT

Kotlin Multiplatform MQTT client & embeddable and standalone broker
MIT License
188 stars 29 forks source link

Delay in Publishing message #44

Closed AhmedX6 closed 7 months ago

AhmedX6 commented 7 months ago

Hi All,

When I publish a message with 0.4.6 version. It takes like 20 seconds or more.

while (isActive) {
                    client?.run()
                    delay(200)
                }

I've done that but even it takes too much time.

Any fix?

davidepianca98 commented 7 months ago

Please replace run() with step()

AhmedX6 commented 7 months ago

Better now. Thanks