nforce icon indicating copy to clipboard operation
nforce copied to clipboard

Support for Change Data Capture

Open curiousblueprints opened this issue 5 years ago • 5 comments

Change Data Capture events are similar to Platform Events and Push Topics, except for the url of /data/* instead of /topic/* or /event/*. I'd love to be able to stream Change Data Capture events using nforce.

I've opened up #176 to support this, but if there is a better way to accomplish this I'm happy to help.

curiousblueprints avatar Feb 27 '19 11:02 curiousblueprints

Today I'm stubbing fayeClient's subscribe method and hardcoding my own channel name to make this work with nforce.

dhulke avatar Feb 28 '19 20:02 dhulke

A more general streaming implementation is coming in 2.0 that addresses this. Stay tuned.

kevinohara80 avatar Apr 18 '19 22:04 kevinohara80

Any updates on version 2.0 ?

agouz avatar Mar 06 '20 04:03 agouz

Any updates on version 2.0 ?

I've created a new npm package called sforcejs based on the 2.0 version of this module with some additional features I needed like back pressure support.

In this new module, you can either pass channel: "/data/CaseChangeEvent" or isCDC:true with topic.

See if it helps: https://github.com/dhulke/sforcejs npm: https://www.npmjs.com/package/sforcejs

dhulke avatar Mar 06 '20 04:03 dhulke

@kevinohara80 Please advise when CDC events support will be available in nforce?

braj1999 avatar Mar 18 '21 05:03 braj1999