The Streaming API, Force.com & You

If you haven't tried the Salesforce Streaming API, put it off no more. Here's a simple unmanaged package that does all the work for you, so you can bask in the glory of real time updates on the Salesforce Platform.

Login to the same account on a different browser and start inserting or updating accounts.

Voila! You can now see the Streaming API in action. Feel free to modify the code and play around as you like. Try it with Opportunities instead of Accounts. Try it with more fields. (Be sure to update the PushTopic or insert new ones using the Dev Console or Workbench.) Put some processing on the front end rather than displaying it as is. You get the idea. You’ll also want to check out the docs for details on supported and unsupported query types.