Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Clients and Cookies for Streaming API
The client you create to work with the Streaming API must obey the standard cookie protocol
with the server. The client must accept and send the appropriate cookies for the domain and
URI path, for example https://MyDomainName.my.salesforce.com/cometd.
Streaming API requirements on clients:
- If the content of the post is JSON, the "Content-Type: application/json" header is required on all calls to the cometd servlet.
- A header containing the Salesforce session ID or OAuth token is required. For example, Authorization: Bearer sessionId.
- The client must accept and send back all appropriate cookies for the domain and URI path. Clients must obey the standard cookie protocol with the server.
- The subscribe response and other responses can contain the following fields. These fields
aren't contained in the CometD specification.
- EventType contains either created or updated.
- CreatedDate contains the event's creation date.