Sforcejs :: node.js salesforce REST API wrapper with backpressure
Sforcejs is a copy of the nforce module with support for streaming backpressure by using the Bayeuxjs package, instead of Faye. The following is an example of the additional feature this package provides.
Streaming Client
Lastevent trigger
The lastevent
event is triggered after the last data
event of the current page has been triggered. The lastevent
event will receive a callback as a parameter that will request additional events when called. This mechanism provides a
way to control the flow of events from the data source.
org;
subscribe(opts)
channel
: (String:optional) A string value for the streaming channel (ex. /data/CaseChangeEvent).isCDC
: (Boolean:optional) Specifytrue
if the topic to be streamed is a Change Data Capture (CDC).