Have you ever heard about the new Heartbeat API that’s being released with WordPress 3.6? It’s coming and it’s going to be a neat addition. For those that do not know, this is what it is among other things:
This will do polling or long-polling so the server is able to send data and notifications to the browser. The primary use will be for setting, monitoring or taking over a post lock. Additionally it will be used to send autosave data to the server. It looks like we won’t need long-polling for now as post locks are not that time sensitive.
Well some enterprising individual (*cough* Alessandro Benoit *cough*) has taken the initiative of providing a real-life example of this in action that begins to show the real potential of what the Heartbeat API can do with his newest plugin:

Based on WordPress 3.6 heartbeat API, Wp Hearbeat Notify, display a realtime custom message to your visitor each time a new post is published with a link redirecting to it. Still in beta version, this plugin has been full tested only on WordPress 3.6-beta3.
As he explains, this implementation is mostly didactic in nature – meaning, it’s meant to help teach, inform, and inspire others to use the API for their own needs. Get a copy of it here.
I think it’s sweet and I could easily see something as simple as this beginning to show up on more blogs as 3.6 matures and (finally) releases. Well done!
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2017%2F12%2Fman-laptop-couch.jpg&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F07%2Fwapuu_regular-compressor.gif&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F05%2Fsam-bruteforce.png&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F04%2Fryan-sullivan-wp-site-care-1.png&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F03%2Fmendelkurland1.jpg&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F03%2FMG_4569-1024x682.jpg&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F02%2F5457535821_af0dfb0191_o.jpg&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F02%2Fgifdrop-torque.jpg&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F02%2Fb3afe25526d2b0797c81cb0c94e742a1.jpeg&w=1080&q=75)
![[object Object]](/_next/image?url=https%3A%2F%2Ftorquemag.io%2Fwp-content%2Fuploads%2F2015%2F01%2Fprofessional-wordpress-third-edition-book-wide.png&w=1080&q=75)