Real-Time Features with Phoenix Channels
Add bidirectional, real-time communication to your Phoenix app using Channels over WebSockets.
What Are Channels?
Phoenix Channels provide a real-time, bidirectional messaging layer over WebSockets (with fallbacks). Perfect for chat, notifications, and live dashboards.
The Socket Layer
Clients connect to a Socket, which authenticates the connection and routes to topics. It is defined in your endpoint.
socket "/socket", MyAppWeb.UserSocket,
websocket: true,
longpoll: falseAll lessons in this course
- Phoenix Project Setup and Structure
- Routing, Controllers, and Plugs
- Views, Templates, and LiveView Basics
- Real-Time Features with Phoenix Channels