ts-force icon indicating copy to clipboard operation
ts-force copied to clipboard

Streaming API : Platform events - replay from id

Open samjeffress opened this issue 6 years ago • 1 comments

Hi,

Is it possible to use the Streaming API to subscribe to platform events, but from a certain replay id as outlined https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/using_streaming_api_durability.htm.

I'm building an occasionally connected api (AWS Lambda) that will store the last replayId and when it is triggered again will use the replayId to resume processing.

samjeffress avatar Dec 02 '19 06:12 samjeffress

It should be possible, but unfortunately the documentation here is vague at best. Would need to dig into what the "Salesforce-provided CometD" setReplay code is actually doing.

Looks like that can be found here.

ChuckJonas avatar Dec 02 '19 19:12 ChuckJonas