Realtime Client Disconnected Event Listener not executed

I created an event handler that listens when client disconnected, and I execute some code to cleanup/remove/delete a specific data object within a table.
I try to turn off the internet connection within my device, but the event handler is not executed.
Please help.

@mark-piller @vladimir-upirov

Anyone?

This topic is tagged under “Server Code”, are you adding a listener on the server side? If not, please provide the details.

Regards,
Mark

are you using a simulator to turn it off?

never mind, it works now. There’s something wrong about my code, and after I fixed it, everything runs smooth as silk again.