Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving data updates #22

Open
moblizeit opened this issue Oct 5, 2020 · 3 comments
Open

Not receiving data updates #22

moblizeit opened this issue Oct 5, 2020 · 3 comments
Assignees

Comments

@moblizeit
Copy link

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

@moblizeit
Copy link
Author

any ideas on this one please?

@pcon
Copy link
Owner

pcon commented Oct 13, 2020

Sorry, I'm afk last week and this week and only have my phone. I'll try to look at this early next week to see what I can figure out. Honestly, this code was a POC when CDC initially came out so things may have changed.

@pcon pcon self-assigned this Oct 13, 2020
@moblizeit
Copy link
Author

did you get a chance to take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants