Let’s Build It
Learn how clients will interact with the game.
We'll cover the following...
Public interface
The big picture is that we’re opening up the public interface we created for the game server to the web. The game server is a stateful system. Modern web front-ends are also stateful. We’ll build a Phoenix Channel as a stateful, persistent connection between these two stateful systems. This new channel’s public interface will become the mechanism clients will use to interact with the game.
Here’s the plan
We build this Channel function by function and check its behavior at each step by calling JavaScript code in the browser’s developer tools console. We ...