Skip to main content

All Questions

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
442 views

lightning/empApi: clarification on replayId param in subscribe method

The LWC Docs describe the replayId parameter in the lightning\empApi subscribe method as follows (emphasis is mine): Indicates what point in the stream to replay events from. Specify -1 to get new ...
Matthew Souther's user avatar
0 votes
0 answers
109 views

Salesforce empApi (pushTopic) error

I have a managed package that is deployed at multiple sites without issue however at one site i am getting a an error thrown to the listener (I am subscribing to a pushTopic from an LWC component like ...
ravent's user avatar
  • 67
0 votes
2 answers
905 views

empApi PushTopic channel does not exist after successful subscribe

I am trying to debug a flaky connection to a PushTopic. Usually it works and is rock solid, except when it doesn't. The connection is being made from LWC after importing lightning/empApi. Occasionally ...
Daniel Collier's user avatar
0 votes
0 answers
57 views

empAPI - can't call subscribe method

Can anyone tell me why this code handleCDC(response) { console.log(JSON.stringify(response)); } subscribe(channel, -1, handleCDC).then(response=>{ console.log('success', JSON.stringify(...
pincet's user avatar
  • 941