Chapter 12. Using Phoenix channels for real-time communication

This chapter covers

  • Making use of Phoenix’s real-time channels
  • Using channels to update an item’s bids in real time
  • Using Phoenix’s JavaScript helpers in association with channels

Believe it or not, this may be the most surprising chapter in the book. Not necessarily because of the content, but because of the disconnect between the perceived difficulty of real-time communication and updates and how easy Phoenix makes this with channels. I think it’s fair to say that in most books about web development, apart from Phoenix, covering a topic like this would take up multiple chapters and certainly would require more code than you’ll see here.

You’ll be using some JavaScript in this ...

Get Phoenix in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.