I'm running into an issue with all Mutliplayer apps I have been recently and I'm not sure what the issue is. I tested these apps with a several people over the last week with different results. Before I show the basic code, I want to quickly explain issues we had.
I was always the host so would launch the app first. The Game Name stayed the same on every session, but was different for each app. The Room Name was always MainRoom in each app.
I have a TextBox with that updates the peer count when a peer connects (this is important).
On to the issue. Peers would connect (as host I would see the peer count up) but none of the On Peer Connected code would trigger.
They would refresh, and it seems trying a different name or combination and it would usually work after some time, but not always. It was so random. Everyone was using Chrome, I made sure of it. Whether it be ipads, iphones, desktops, etc.
I'm thinking I am not understanding something with how the Multiplayer plugin works.
My Code: This part always completes going to layout 1.
Layout 1
With certain users, this was never a problem. With others, it was so hit or miss it became extremely frustrating. Is it a matter of moving off the scirra signaling server and moving to a different signaling server? Implementing an ICE server? Are there good options for ones out there on a monthly basis?
I should also note, I know the Host Group is activating because everything else in the group works fine.
Thanks everyone.