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

add support for Change Data Capture events #176

Closed curiousblueprints closed 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.

kevinohara80 commented 5 years ago

Thanks for the PR. I’m currently working on a 2.0 branch which accommodates all platform events. In the next release you’ll just specify the topic like ‘//’ which essentially enables support for any event...including CDC.

I’m going to close this because I’m very close to having the 2.0 release out there and the new stream api supports CDC.

dhulke commented 5 years ago

It would be awesome to include replayId support on this 2.0 version. Today I have to intercept outgoing /meta/subscribe messages and include the replayId myself.