Skip to main content



Streaming API for Community 'n' Internal, Platform Events subscription using CometD

Salesforce out of the box Streaming API lightning components like  lightning-emp-api  do not support Salesforce Communities (Community Experience Cloud). CometD  is a great option for these use cases, this supports  Streaming API  for both Internal and Community uses,  lightning emp api is built based this event and message routing bus. CometD connects to Salesforce like an external application through the Salesforce CometD endpoint. You can refer to the below link for more information about the CometD endpoint Implementation of CometD on a Lightning Web Component: Download CometD from   Not all versions are compatible with Salesforce platform, one version that worked for me is 3.1.1 upload cometd.js to static resource from this path 'cometd-3.1.1\cometd-javascript\common\src\main\webapp\js\cometd' in the downloaded file.  Co

Latest posts

LWC Visual Pickers

Lightning Web Components Quick Action workaround - highly flexible

Sneaky smart Quick Action to open record create, edit or like pages/panels for an object

Workaround for custom width, header and footer of Lightning Quick Action