I am working on PHP project using mosquitto client, I need to check when some user disconnects, and identify the user.
I am using code callback function which only contains the reason for disconnect.
onDisconnect($callback)
function so that I can handle the disconnect event.
How to link the event to the user in the database.
Thanks,