Module mqtt.loop.nginx
Nginx specific client handling module.
Typically this module is not used directly, but through mqtt.loop when auto-detecting the environment.
Functions
add (client) | Add MQTT client to the Nginx environment. |
Functions
- add (client)
-
Add MQTT client to the Nginx environment.
The client will automatically be removed after it exits. It will set up a
thread to call Client:check_keep_alive.
Parameters:
- client mqtt-client to add to the Nginx environment
Returns:
true
on success orfalse
and error message on failure