No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
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://instance_name.salesforce.com/cometd.
Streaming API requirements on clients:
- The "Content-Type: application/json" header is required on all calls to the cometd servlet if the content of the post is JSON.
- 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 might 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.