Description
Description
LWC can't subscribe to a Platform Event if there is an Aura component that is subscribing to a Platform event in the same Lightning Page.
Steps to Reproduce
Place an Aura component that subscribes to a Platform Event 1 and a LWC that subscribes to a Platform Event 2 in a Lightning Page. The Aura component subscribed without any problem. The LWC did not subscribe and also did not display any error message or exception. Once I removed the Aura component from the Lightning Page, saved it, and reloaded it, the LWC subscribed to the Platform Event. Bear in mind I did not change anything in the LWC. I just removed the Aura component from the Lightning Page.
I followed the instructions to build the LWC component from here:
https://developer.salesforce.com/docs/component-library/bundle/lightning-emp-api/documentation
And I made the correction to my component that is described here:
https://developer.salesforce.com/forums/ForumsMain?id=9062I000000Xm9eQAC
Again, the LWC code is working! but only if I remove the Aura component from the Lightning Page.
Expected Results
LWC should subscribe to the Platform Event
Actual Results
LWC does not subscribe to the Platform Event and also does not show an errror message or exception
Activity