Wrapping Up

Let's highlight the main contents of this section.

We'll cover the following

Simple and flexible

Phoenix Channels provide the backbone for our application’s real-time messaging. Our application is only sending messages from server to client right now, but we still benefit from the simplicity and reliability of the Channel Library. We sent HTML directly from the server to the client, and JSON payloads were processed by a JavaScript front-end. The flexibility of using either HTML replacement or JavaScript event handling gives us several different ways to approach the same problem.

Get hands-on with 1000+ tech skills courses.