Newer Version Available
Subscribe to a Channel and Receive Event Notifications
Use EMP Connector to subscribe to a platform event channel.
-
In the
/src/main/java/com/salesforce/emp/connector/example
folder, open the LoginExample.java source
file.
The LoginExample.java class uses a default login URL of https://login.salesforce.com. If you want to specify a custom login URL, use the DevLoginExample.java class instead. For more information, see https://github.com/forcedotcom/EMP-Connector.
-
Subscribe to an event channel by running the LoginExample class.
- To subscribe to a custom event, see Subscribe to a Custom Platform Event.
- To subscribe to a standard event, see Subscribe to a Standard Platform Event.