Incorrect behavior of the program when the Internet connection lost in the multiplayer chat.

0 favourites
  • 3 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?

    The problem is that if the Internet connection lost, 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 in signalling.

    I need help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

    The problem is that if the Internet connection lost, 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 in signalling.

    I need help!

    can any of the developers answer my question?

  • Did you or anyone find a solution to this? Having the same issue.

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