CHAPTER 10

image

Implementing Realtime Events and jQuery Effects

At this point, you have a fully functional app. However, in order for this particular app to be useful, it needs to implement realtime functionality so its users aren’t forced to constantly reload to get new data.

In this chapter, you’ll hook the app up to Pusher and add code to the back end that will create realtime events. You’ll also use Pusher’s JavaScript application programming interface (API) to subscribe to those events and jQuery to animate the app so the new data can be manipulated onscreen in a non-jarring way.

Which events need realtime enhancement?

  • Closing a Room
  • Opening ...

Get Realtime Web Apps: With HTML5 WebSocket, PHP, and jQuery 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.