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!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset