Receive Streaming Events in Your Lightning Component

Turn your custom Lightning component into a streaming event listener by embedding the lightning:empApi component. You can subscribe to any type of event channel. The events that you can receive include platform events, PushTopic events, generic events, and Change Data Capture events.

Where: This change applies to Lightning Experience, Salesforce Classic, and all versions of the mobile app in Performance, Unlimited, Enterprise, and Developer editions.

How: The component uses a shared CometD-based Streaming API connection, enabling you to run multiple streaming apps in the browser. Previously, you could run only one app in Salesforce that used a CometD-based streaming connection.