Newer Version Available

This content describes an older version of this product. View Latest

Subscribe to a Channel and Receive Event Notifications

Use EMP Connector to subscribe to a platform event channel.
  1. 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.
  2. Subscribe to an event channel by running the LoginExample class.
    1. To subscribe to a custom event, see Subscribe to a Custom Platform Event.
    2. To subscribe to a standard event, see Subscribe to a Standard Platform Event.