Skip to content

Salesforce streaming API stops streaming after an interval #857

@RanajitSamanta

Description

@RanajitSamanta

NodeJS =>JSForce current version 1.9.1 has been used for our development.

Problem Statement : After a subscription to the Salesforce streaming API (Email Update)topic, it's stopping continuous streaming sometimes after 10 mins, sometimes after 40-45 mins, checked JsForce documentation as well nowhere has been mentioned any timeout is required to pass as they said only below piece of code will work.

conn.streaming.topic("").subscribe(function(message) {
console.log('Event Type : ' + message.event.type);
console.log('Event Created : ' + message.event.createdDate);
console.log('Object Id : ' + message.sobject.Id);
});
Checked with JAVA client => it's working continuously without stopping and receiving streaming data as well over a period of time without any issue.
Please help us to rectify it with JSForce library.How to do that continuous streaming?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions