Hi!
I downloaded an example of a multiplayer chat.
Added 1 Button: "Leave room"
Added 3 text fields to it that display the connection status:
1. is connected to the server (is NOT connected to the server)
2. is logged in (is NOT logged in)
3. is in room (is NOT in room)
I made an output to the android file.
Started the chat.
The text became like this:
1. is connected to the server
2. is logged in
3. is in room
Turn off WiFi.
The text became like this:
1. is NOT connected to the server
2. is NOT logged in
3. is in room
Why doesn't the chat leave the room?
It is not possible to re-enter the chat.
When I click "Leave room" button, the server writes:
Error: not in the room.
But the system thinks I'm in the room and informs me about it:
3. is in room
How do I make the correct exit from the chat so that it does not stay in the room when the connection is lost?
Ashley, I need help!