kevinohara80 / nforce

nforce is a node.js salesforce REST API wrapper for force.com, database.com, and salesforce.com
MIT License
474 stars 167 forks source link

Support for Change Data Capture #177

Open curiousblueprints opened 5 years ago

curiousblueprints commented 5 years ago

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.

dhulke commented 5 years ago

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

kevinohara80 commented 5 years ago

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

agouz commented 4 years ago

Any updates on version 2.0 ?

dhulke commented 4 years ago

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

braj1999 commented 3 years ago

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