Skip to main content

Hello,

 

I wanted to know if anyone in the group has had any experience working with the Streaming API.

I am trying to get a VF Page embedded within an external site to listen to Platform Events coming from SF Lightning Environment. To be able to do so, I am implementing the Streaming API, however whenever CometD wants to perform the handshake, I get the following messages:  

/meta/unsuccessful Error: {"advice":{"interval":0,"reconnect":"handshake"},"channel":"/meta/subscribe","id":"5","error":"403::Unknown client","successful":false}

Along with the message ' Exception during handling of messages Unrecognized advice action handshake'.

What strikes me as strange it's that the initially it works and within miliseconds it goes all awry, as the photo attached shows:

 

Connection to CometD unsuccessful from VF Page (embedded within external site).The code I use works perfectly fine within the Lightning Experience Scope, just wondering if this use case is out of the functionallity's scope of action.

Any help would be greatly apprecciated!

Best,

 

Geisel

 

3 respuestas
0/9000