I have a requirement where i have to refresh the page automatically when a record changes, i'm doing this using platform events whenever an event is published the VF page that has subscribed to the streaming API will execute a script to change DOM element, this functionality works well for the vf page in the org but when the vf page is appended with the site(external site user) the functionality fails to subscribe to the platform event.Does anyone have a solution for this?

  • guest user or authenticated user?
    – cropredy
    Mar 23, 2020 at 17:40
  • For a guest user Mar 24, 2020 at 21:08

1 Answer 1


Streaming-api subscription requires that the User have access to the Push Topic. Normally this access is granted through the Profile or PermissionSet.


As @cropredy commented, is this an unauthenticated use case?

  • It'll be a guest user who will interact with the vf page.... Basically what I want to build is a chat box where two different guest users can converse on this page(we cannot use web chat or chatter on sites I guess) so if I refresh the Dom through streaming api subscription I may be able to create a flow..... Any better idea to create a chat functionality would be much appreciated as I think this idea in itself seems crazy Mar 24, 2020 at 21:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .