Skip to content

Not receiving data updates #22

@moblizeit

Description

@moblizeit

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!");
});

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions