23.11.2019, 09:19
Add logging to your script:
Code:
mclient.ON_CONNECT = function(...)
log('on_connect', ...)
Code:
function mconnect()
local fd
log('connect', mclient:connect(broker))
fd = mclient:socket()
-- fd ref is valid
if fd then
mclientfd = fd
end
end