Creating a chatroulette
The chatroulette that we will build is only for people residing in India, that is, a peer cannot connect to the PeerServer if the IP address of the peer doesn't resolve to India. We added this filter to make the website a little more complex to code so that you can learn how to check whether a user is allowed to connect to PeerServer or not.
We will use a single server that will serve webpages and also act as a PeerServer, that is, we will integrate PeerServer with the Express server.
We won't get into designing the frontend of our chatroulette. We will only be concentrating on building the architecture and functionalities.
The exercise files for this chapter contain two directories: Chatroulette
and Custom-PeerServer
. In the Chatroulette
directory, there are two directories: Initial
and Final
. In the Final
directory, you will find the complete chatroulette source code. In the Initial
directory, you will only find the HTML code for our chatroulette. The Initial...