-
Notifications
You must be signed in to change notification settings - Fork 167
replay functionality is not working - Platform events #178
Comments
same issue for me as well. |
It's possible that this is working now in streaming 2.0 I'm hoping to have 2.0 out within a week. Once I have a beta out, it would be great if you both would test it for me and report back? |
Not 100% related but digging through here did allow me to make my pushtopic work in 1.12.2 Connecting in single mode as described in the doc I was getting this error
I replaced the fdcstream.js in the 1.12.2 release with the one from the streaming-2.0 branch and changed the way I subscribe to the pushtopic (passing in /topic/mypushtopic instead of just the topic name, found here https://github.com/kevinohara80/nforce/blob/streaming-2.0/examples/stream.js) With that I'm able to connect succesfully for the moment. Looking forward to the full 2.0 release, especially the typescript part! Nice work @kevinohara80 |
This workaround worked for me, thanks @Alasano. thank you @kevinohara80 for providing this super simple node library. |
I took the latest version of committed fdcstream.js and updated my local files and it looks like the replay functionality works fine now. |
This workaround also works for me, thanks @Alasano ! |
Hi, is there any chance that the streaming-2.0 branch will merge to master? I'm new to salesforce devving, and would like to subscribe to platform events, but am not so excited about copying files around. More than happy to take a fork and give it a test. |
Alternatively, are you able to publish your streaming-2.0 library to npm as a beta? |
This workaround also works for me, thanks @Alasano ! & @karoldylewski
|
I am trying to subscribe to a platform event in salesforce and it works fine - except ability to replay events -either from a specific replayId or from the earliest available (-2). Below is the code that I am using - which is taken from a sample code provided in a salesforce doc but is not working - any help would be greatly appreciated.
`org.authenticate({ username: USERNAME, password: PASSWORD,securityToken: SECURITY_TOKEN }, function(err, oauth) {
if(err) return console.log("Error authenticating to Salesforce, " + err);
var client = org.createStreamClient();
I have also tried using "replayId" and "replayFrom" instead of retry but still no good. I am running this code from AWS Lambda - Node JS .
The text was updated successfully, but these errors were encountered: