You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a tough problem. This library is tightly coupling the runloop (and sockets) to the protocol implementation.
I did work on that to decouple them, see: #31 . It facilitates both blocking as well as non-blocking (== coroutine yielding) sockets. I completely rewrote the connectors there. But not sure it would be possible to handle callback based sockets.
I was able to get it working but with some heavy lifting, and modification of the code. I can post my fork of the project, and maybe it will spark some ideas. Thank you!
From: Thijs Schreijer ***@***.***>
Sent: Wednesday, June 19, 2024 4:31 PM
To: xHasKx/luamqtt ***@***.***>
Cc: Schellhas, Gary ***@***.***>; Author ***@***.***>
Subject: Re: [xHasKx/luamqtt] Connector for Socket Library that only reports Status through Callbacks (Issue #47)
That's a tough problem. This library is tightly coupling the runloop (and sockets) to the protocol implementation.
I did work on that to decouple them, see: #31<#31> . It facilitates both blocking as well as non-blocking (== coroutine yielding) sockets. I completely rewrote the connectors there. But not sure it would be possible to handle callback based sockets.
You might want to have a look at https://luarocks.org/modules/fperrad/lua-mqtt which (afaik) only implements the protocol, not the sockets.
-
Reply to this email directly, view it on GitHub<#47 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKJYLYJ5VDBBPRHVIKTHBUDZIHS6NAVCNFSM6AAAAABJSTOWHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGQZDCNBUGY>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
I am working in an environment that doesn't have access to Lua rocks and doesnt have access to luasockets.
The Library I have access to is a TcpSocket, found here.
https://q-syshelp.qsc.com/#Control_Scripting/Using_Lua_in_Q-Sys/TcpSocket.htm
The library is not blocking, and the environment does not allow me to block either. I have access to a Timer library found here that utilizes callbacks.
https://q-syshelp.qsc.com/#Control_Scripting/Using_Lua_in_Q-Sys/Timer.htm?TocPath=Design%257CControl%2520Scripting%257CQ-SYS%2520Extensions%2520to%2520Lua%257C_____34
Can you see a way to create a connector with this? Thank you,
The text was updated successfully, but these errors were encountered: