I’ve just come up with this crazy idea for networking. I don’t see why it wouldn’t work. but you can tell me.
So imagine a game is played on a website. The website contains two instances of Unity. One instance is set as a client (C). The other one is set as a server (S). So if we have 5 players:
S1 S2 S3 S4 S5
| \ | \ | \ | \ |
C1 C2 C3 C4 C5
The server and client on the same webpage can communicate with other, maybe via javascript.
Also, each server can send messages to another player’s client.
In this way all 5 players are connected in a kind networked ring.
Now here’s the clever bit. If one player drops out, all the players are still connected! They can reconnect themselves without calling the Master Server.
You can make it even more secure by have 3 instances of unity on the same webpage. One server and 2 clients. Each server can then talk to the 2 clients on it’s webpage plus 2 other clients from different players.
What do you think?