You need to sign in to do that
Don't have an account?
Streaming API connect fails
I've used the javascript example as an base to serve a Visualforce page with streaming API enabled.
With a few modifications on the example everything is the same.
I get error's on the connect command and then it gets into an endless handshake/connect loop.
The response in firefox console is saying 'unknown client':
[{"channel":"/meta/connect","advice":{"reconnect":"handshake","interval":500},"error":"402::Unknown client","successful":false,"id":"3"}]
i've tried different browsers and even different versions of cometd distribution ( 2.1.0 and 2.3.0 instead of 2.2.0 given in example )
When I subscribe to the topic with the workbench everything just works fine. Is it because i'm serving the listeners in VF ? or is the combinitation with Jquery.comet?
Could you please check this again? We may have addressed the issue.
If the issue persist, could you share which instance you are using (e.g. NAx) ?
Thank you,
--alex
All Answers
see topic "connect/handshake loop in javascript sample"
Ok, let's wait until more info from the Api team.
Thanks
We have our network team reviewing the issue.
Will post an update as we get feedback.
Regards,
--alex
Could you please check this again? We may have addressed the issue.
If the issue persist, could you share which instance you are using (e.g. NAx) ?
Thank you,
--alex
It works now!
Thanks for the feedback
Excellent. Apologies for the delay.
Please keep us posted on your progress and likes/deslikes.
Thank u!
--alex
Are you able to successfully run the visualforce listener? if yes, can you please post your VF code here.
I'm facing issues when trying to run Visualforce example (as mentioned in the streaming api pdf / wiki article)
I've logged my error @ http://boards.developerforce.com/t5/Streaming-API-Developer-Preview/Error-trying-to-do-the-Visualforce-sample-of-Streaming-Api/m-p/357569/message-uid/357569/highlight/true#U357569