Skip to main content

#Lightning Message Service0 人がディスカッション中

I have some problems with Deploy a Message Channel, When I using the command in Vscode, it show me a meesage like this:

 

I have some problems with Deploy a Message Channel, When I using the command in Vscode, it show me a meesage like this:

 

#Trailhead Challenges  #Lightning Message Service  #Salesforce Developer  #VSCODE

2 件のコメント
  1. 2024年3月4日 21:25

    Hi @Renzo Gómez Césare Can you please confirm if you're still seeing an issue? If yes, can you please mention the Module and Unit name or URL so that we can look into it and can help you further?

     

    If your issue is resolved, can you please mark the appropriate response as "Best Answer” or post the resolution that helped you in resolving this issue? So that it can help the other Trailblazers. 

     

    Thanks!

    ++TrailheadHelpFollowUp

0/9000

 

Hello Everyone,

 

1. We can use Pub-Sub to communicate between un-related components by using a custom library / code.

2. LMS is built-in framework by Salesforce to communicate between un-related components.

3. In this case what is the difference between Pub-Sub and LMS. In Salesforce documentation I can see this line "The advantage over pubsub is that message channels aren’t restricted to a single page".

4. But it was not working, when I try to establish a communication between two different components on two different pages.

 

Can you please help me to understand what they are trying to say in this documentation.

 

Link : https://developer.salesforce.com/docs/platform/lwc/guide/events-pubsub.html

 

What is the Difference between Lightning Message Service and Pub-Sub

 

#Lightning Message Service  #Lms  #Salesforce Developers  #Architects  #Salesforce  #Salesforce Developer  #PubSub Model

3 件の回答
  1. 2024年2月15日 7:52

    Hi @VIGNESH BALASUBRAMANIAN,

    The Pub-Sub pattern in LWC was initially used for event communication between unrelated components on the same Lightning page.

     

    LMS  allows communication between components across different pages and also between Visualforce pages and various types of Lightning components, including LWCs and Aura components.

    Please review the following blog posts for a clearer grasp of LMS and the Pub-Sub pattern, illustrated with examples:

    https://www.sfdcblogs.com/post/lightning-message-service-lms-in-lwc

    https://santanuboral.blogspot.com/2019/09/LWC-drag-n-drop-pub-sub.html 

    https://santanuboral.blogspot.com/2021/02/lms-with-lwc.html  

     

    Hope this helps you. Thanks

0/9000

I have 5 lightning web components on my flex page. One of the components like to maintain the list of components and run some business logic on one of the events?  I know, I can send the component name or some identifier to the message channel in the message while publishing messages by the pub(lisher) components but I wanted to see if the sub(criber) component can get these details natively in messageConext or in any other way.  

 

Thanks in advance!!

 

#Lightning Message Service #Lightning Web Components #LMS

0/9000

Good afternoon,

 

Currently I have a few components that use the Lightning Message Service, but I realize that this feature is in beta for Experience Builder sites.  As of right now, my components seem to work as expected and required.

 

Is there:

- Any word on when/if LMS will come out of beta for Experience Cloud?  Maybe on the roadmap?

- Much risk associated with using LMS in Experience Cloud?  Should I convert to pubsub?

 

Thanks!

3 件のコメント
0/9000

Please find the presentation, recording for Kitchener Developer Group’s session on "All about events”. In the session, Stephan Chandler-Garcia discussed about Lightning Message Service, CustomEvent, the EMP API, Platform Events, Change Data Capture, WebSocket, and Consent Events!

 

https://www.sudipta-deb.in/2021/04/kitchener-canada-developer-group-event_16.html

 

@The Blog Group @Developer Group, Kitchener, CA @Developer Group, Mississauga, CA @Toronto Salesforce Developer Group @Admin Group, Mumbai, IN @Admin Group, Chennai, IN @Toronto Administrators Community Group @Admin Group, Jaipur, IN @Admin Group, Dubai, UAE @Admin Group, Bikaner, IN @* Salesforce Administrators * @* Salesforce Developers * 

0/9000

[Blog Post] Use Lightning Message Service (LMS) to communicate between Visualforce and Lightning Components (Aura) and Lightning Web Components (LWC) on any Lightning page. LMS API allow you to publish message throughout the lightning experience and subscribe the same.

https://newstechnologystuff.com/2020/03/22/lightning-message-service-quick-demo/

10 件のコメント
0/9000