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.