In this post, I'll show you how to write the functional components of a very simple chat app. It's a stripped-down example, but you'll see how Channels can simplify the implementation of real-time communication in a web app.
While the post does include a screencast of the process, it also walks through it in a text format, helping you:
- set up the server with the Pusher PHP package
- create the client code on the backend and frontend
- send messages between the chat windows
The Channels functionality makes it simple to subscribe and see only the messages you want (and not everything that comes down the line). The Pusher PHP library makes the integration simple too.