-
Notifications
You must be signed in to change notification settings - Fork 12
Not receiving data updates #22
Copy link
Copy link
Open
Description
i kind of modified the code to just have specific to what i need and it looks like below. My handshake is successful but still i do not see any data change events when i update the stage or any other opportunity attribute which i have shuttled to the right in the salesforce setup. Any advise what else to check or what could go wrong?
export const helloWorld = functions.https.onRequest(async(request, response) => {
functions.logger.info("Hello logs!", {structuredData: true});
const data = {
"url": "https://xxx.salesforce.com",
"accessToken": "ksksksks"
}
await cometd_setup(data)
functions.logger.log("cometd_setup_done")
await cometd.handshake(function (handshake:any) {
if (handshake.successful) {
functions.logger.log("successful opty sending data")
cometd.subscribe('/data/OpportunityChangeEvents', cometd_processdata)
} else {
logger.info('Handshake failed', handshake);
}
})
response.send("Hello from Firebase!");
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels