How to subscribe to platform events in LWC?

In Salesforce, we often need to receive notifications or event when there is certain DML/Event happened at some part of the Salesforce by another user or in the backend or through API call from external System. This can be achieved through Platform events. We can subscribe to platform events, When subscribed to platform events we […]