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)

Back to index

No Comments