function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Venkat Reddy 45Venkat Reddy 45 

Real time data streaming without any refreshment

Dear Experts,

         Could you please explain me, how to do "Real time data streaming without any refreshment" with example?

Hi Venkat,

It sounds like the Streaming API is what you're after. This can be used in a Visualforce page to subscribe to topics so the page will automatically refresh after records are created/updated/deleted etc. There is some very good documentation on the Streaming API (along with sample code) that can be found here:

A futher developer's guide can also be found here:
Venkat Reddy 45Venkat Reddy 45
Assume I have 20 records displaying in pageblock table, now I have deleted a record from model now my pageblock table should  automatically show 19 records without any page refresh.
Hi Venkat,

Yes, this would be an excellent use case for the Streaming API :-)

There was actually a mini hack challenge around the streaming API at Dreamforce this year. You can download an unmanaged package that should have some good sample code for you to learn from here: