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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.