How do I Disconnect and then reconnect in multiplayer plugin

0 favourites
  • 2 posts
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • I am converting a game to multiplayer and everything is fine, but when my player dies and i want to restart and again connect to signalling server and auto join a room, the on join room call back never happens, It only works if i reload the browser.

    What I am doing is

    on player death -> leave room->disconnect from signalling server->Restart Layout

    But on restart the game connects to server successfully, Logging in is also successful but doesn't joins a room,

    I have tried both join room and auto-join room.

    The main thing is that on reloading the browser window it works fine again, but reloading the layout doesnt work.

    And i also do the Reset Global Variables.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your capx would be very helpful here.

    Anyways. You should probably give the client some time to disconnect from the server before restarting the layout.

    If that doesn't work, I'll need your .capx for further investigation.

    Since your game apparently connects normally when you start it first, there doesn't seem to be an issue with your code.

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