like this.
Code: Select all
room.switchSpectatorToPlayer(user);
But at client (HTML5 and Javascript) user is assumed as a Spectator only in current opened clients and whenever a new client window is opened its counted as a Player.
Is it possible to update room detail on currently opened client window whenever we switch spectator to player?