WebRTC Game Server

by Javier Iregui

> FIND ROOM

Finds a random public room.
If there's no avaliable public room it creates a new public room

> CREATE ROOM

Creates a new private room

Joins either a public room or a private room using it's code

This website is an example of how my back-end system would work in a real online game. The idea is to create a game room system in which the players comunicate amongst themselves when their in a room. This allows less traffic to go through the server making it cheaper and easier to set up and work with. The system uses Node.js and Express to manange the views and assign the rooms. Once a room is assigned, the server is also encharged of the signaling to create a WebRTC connection between players. The server uses WebSockets through Socket.io to manage the connections and then it creates a WebRTC Data Channel.