Skip to Content
Phoenix Web Development
book

Phoenix Web Development

by Brandon Richey
April 2018
Beginner to intermediate content levelBeginner to intermediate
406 pages
9h 33m
English
Packt Publishing
Content preview from Phoenix Web Development

Sending and receiving messages with channels

We have a channel that we can join and some basic JavaScript, but without it actually doing something more interesting I don't think we'll have enough people using the site to make it worthwhile. We need to get some code in place that will help us mediate the sending and receiving of messages between our client and our server! The good news is that the code to do that is just as simple as the code we've already written to handle our client joining and subscribing to a particular topic. The problem right now, however, is that our code dealing with the polls topic is always firing, no matter what page it's on.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Phoenix in Action

Phoenix in Action

Geoffrey Lessel
Real-Time Phoenix

Real-Time Phoenix

Stephen Bussey

Publisher Resources

ISBN: 9781787284197Supplemental Content