Questions tagged [lightning-message-service]

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

Lightning Message service error in visualforce page - Cannot read property 'subscribe' of undefined

Was anybody able to work with sforce.one.subscribe for subscribing to lightning message service in visualforce? I keep getting below error: Even after including sforce and ajax js files, sforce.one ...
0
votes
1answer
48 views

Lightning message service(Build a Bear-Tracking App with Lightning Web Components)

When I am making a bear tracking app this problem arises in the last module. Error - afterRender threw an error in 'c:bearMap' [lightning/messageService: The scope property is required. When you call ...
0
votes
1answer
34 views

In Aura Components, is it possible to subscribe and unsubscribe to message channels?

Currently I'm playing around with the Lightning Message Service. I've noticed tha online tutorials for using LMS with both VisualForce and Lightning Web Components demonstrate publish, subscribe, and ...
3
votes
1answer
44 views

How to use LMS & EMP-API in the same LWC component

As both empApi and LMS require the import of the subscribe and unsubscribe methods. How can you use both within the same component? import { subscribe, unsubscribe} from 'lightning/empApi'; import { ...
1
vote
1answer
34 views

Listening to LMS messages from a background utility bar item

I want to do some background processing so I wrote a background utility bar item, and tried listening to LMS messages, but it didn't work. Then I found this: It is a front-end service that works in ...
0
votes
1answer
86 views

Lightning Message Services (beta) - no response

I tried playing around with Lightning Message Services as per the release note. Created a LWC to publish message on the message channel, and a VF page to listen to it. Also the other way around. I am ...
2
votes
1answer
339 views

Send message to aura components from lwc

I have a requirement to send messages from LWC component to an Aura component. The component exist on the page independently, i.e LWC is not embedded in an aura component. The components are in a ...