I took the chat template from the Construct examples.
Added a button to exit the chat and 3 text forms in which the multiplayer states are displayed:
Then I export poject to Android, run it, push button "JOIN"
Then I collapsed the chat and waited 10 minutes.
During this time, the server apparently disconnected me.
I clicked the exit chat button, it is clear that there is no connection with the server, but the system shows that I did not leave the room.
And I can't go into the room again.
How to log out of the chat correctly?