We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7141d63 commit ab2872aCopy full SHA for ab2872a
examples/copas.lua
@@ -59,6 +59,11 @@ client:on{
59
copas.addthread(function()
60
print("running client in separated copas thread #1...")
61
mqtt.run_sync(client)
62
+
63
+ -- NOTE: in sync mode no automatic reconnect is working, but you may just wrap "mqtt.run_sync(client)" call in a loop like this:
64
+ -- while true do
65
+ -- mqtt.run_sync(client)
66
+ -- end
67
end)
68
69
0 commit comments