A new component I'm building uses Platform Events to communicate async server-side changes to the front end. This works great in LWC in Lightning Experience using
empApi isn't supported in Classic, and most of my users have not migrated yet. In the meantime, we have to embed our new Lightning Web Components in Visualforce via Lightning Out.
Searching for a workaround, I have successfully implemented CometD in the Visualforce container to subscribe to Platform Events. But I'm not sure there is any way to pass the event payloads from Visualforce down to the LWC components when they're received. All the docs I've read recommend Aura Events or Lightning Message Service, but these approaches rely on Lightning Experience /
one.app. And again, my users are in Classic.
What else can I try?