Streaming API
Push Topics (Steaming API)
let stream = new Streaming();
await stream.connect();
// sObject mapping
await stream.subscribeToTopicMapped(
Account, // generated SObject static
'MyTopic', // topic name to subscribe to
e => { // on event callback
let acc = e.data.sObject;
console.log(acc.name);
}
);Platform Events
Disconnect / Unsubscribing
Using with Node
Last updated
Was this helpful?