Phoenix Channels

Get introduced to Phoenix Channels and how to use them.

We'll cover the following

Phoenix Channels are just amazing. They are Phoenix’s killer feature. They provide persistent connections between stateful servers and stateful clients. They’re incredibly fast and can truly scale.

Channels allow us to fulfill the promise we made at the very beginning of this course: to connect a stateful back-end to a stateful front-end with a persistent, stateful connection. We’re going to build a Channel that allows us to directly interact with the game engine. The Channel callback functions we define will match the public interface of the game. Here, we build new functionality with callbacks in our own new Channel module, and then we exercise those callbacks in two browser window consoles to mimic two players playing the game.

Get hands-on with 1200+ tech skills courses.