← All series

Series contents

Log in to track your progress

  1. 1. Phoenix 1.4 Chat Server: Part 2 Episode
  2. 2. Phoenix 1.4 Chat Server: Part 4 Episode
  3. 3. Phoenix 1.4 Chat Server: Part 6 Episode
  4. 4. Phoenix 1.4 Chat Server: Part 9 Episode
  5. 5. Phoenix 1.4 Chat Server: Part 7 Episode
  6. 6. Phoenix 1.4 Chat Server: Part 3 Episode
  7. 7. Phoenix 1.4 Chat Server: Part 1 Episode
  8. 8. Phoenix 1.4 Chat Server: Part 5 Episode
  9. 9. Phoenix 1.4 Chat Server: Part 8 Episode

Phoenix 1.4 Chat Server: Part 5

This episode is part 5 in a Phoenix 1.4 Chat Server series:

In this episode we build out the chat page, and set up Phoenix Channels along with the JavaScript to connect to them. Here's the plan:

  • Create the eex template for the chatrooms
  • Set up the UserSocket and RoomChannel on the back-end.
  • Write the JavaScript for the chat room to connect to the socket and join the appropriate channel.
  • Display chats on the front-end.

At the end of this episode, we have an anonymous chat set up for each room created.

(Source code available for premium members)

Open standalone page ↗

No Comments