Newer Version Available
Communicating Across the DOM with Lightning Message Service (Beta)
Use Lightning message service to communicate across the DOM, between Aura components,
Visualforce pages, and Lightning web components. If you're switching from Salesforce Classic to
Lightning Experience, you can now build Lightning web components that can communicate with
existing Visualforce pages or Aura components. Lightning message service is available in
Lightning Experience only.
To access Lightning message service in Aura, use the lightning:messageChannel component. A message is a serializable JSON object. Examples of data that you can pass in a message include strings, numbers, booleans, and objects. A message cannot contain functions and symbols. The lightning:messageChannel component is only available in Lightning Experience.