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

Making voting real-time

We have our manual methods for voting, so we have a nice fallback should we be working with a browser that doesn't support anything fancy, but let's also build the good stuff into our application! If we return back to the JavaScript code that lives in assets/js/socket.js, we can go into our conditional and start by adding a new bit of code by modifying our current join code. Again, when we're building functionality we always want to be building our functionality up from the simplest implementation, so we'll start with some dummy code!

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