I got a server for self hosting and the game works via wss but I get error messages when I try to gets appPeerCount and lobby stats, etc.
When clients connects to a game server, it disconnects from master by default. Leaving room reconnects client to a master where LoobbyStats requests start working again. JS SDK client supports keeping connection to a master while joined to a room. But this is not recommended and the feature is not exposed in plugin.
Also Lobby statistics events are sent as client connects to a master server. Then they are sent every minute.
Application statistics events are sent automatically each 5 sec. while client is connected to a master.
[quote:3bl4x0iq]Btw please fix this issue of trying to connect to a random room while connected to a room. Getting alerts with js errors is not too great.
Underlying Photon js library throws exceptions. This is not a problem in js app but it seems like it's not possible to catch exceptions in Scirra app. We will think about changing error handling w/o breaking existing js apps.