How do I leave room in a mutliplayer chat, Ashley?

0 favourites
  • 5 posts
From the Asset Store
Chat with smart animals using the OpenAi Chat GPT 3 API
  • 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!

    Tagged:

  • Not too clear from your description, but issues like this usually result from misunderstanding and getting the signaling connection and the room connection mixed up. The can be disconnected from separately, make sure you're using the right one. Also note that disconnection is an asynchronous action, it doesn't happen in one tick so make sure to use the 'on disconnected' and 'on left room' triggers to log and diagnose.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Not too clear from your description, but issues like this usually result from misunderstanding and getting the signaling connection and the room connection mixed up. The can be disconnected from separately, make sure you're using the right one. Also note that disconnection is an asynchronous action, it doesn't happen in one tick so make sure to use the 'on disconnected' and 'on left room' triggers to log and diagnose.

    The problem is that if the Internet connection disappears, the program shows that there is no connection to the server, but I am in the room. How is this possible?

    Because of this error, it is impossible to create a room since I am supposedly already in it.

    And when I try to say to SERVER leave the room, the server reports that I am NOT IN the room but the PROGRAM says that I am IN the room.

    And all this happens on the example of a multiplayer chat without any changes.

  • 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!

    The problem still remains. Maybe Ashley Ashley can help solve it?

  • Sucks to revive these posts, but that is a pretty big issue unless there's something I can't see. Also an issue if the game is in the browser, they quit to give their room code through a chat in another application and when they come back to the browser they've been disconnected yet still connected to the room with no way of joining another one or properly leaving the one it thinks they're still in.

    There needs to be a way to "force" a status refresh.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)