Api Streaming
DOWNLOAD
First things first !
To download this implementation guide, click the download button below.
If you need more information about the implementation guide, you can read the Table of Contents below.
Chapter Getting Started with Streaming API
Push Technology
Bayeux Protocol CometD and Long Polling
Streaming API Terms
How the Client Connects
Message Reliability
Message Durability
Streaming Event Features
API EndofLife Policy
Chapter Code Examples
Example Subscribe to and Replay Events Using a Java Client EMP Connector
Prerequisites
Step Create an Object
Step Create a PushTopic
Step Download and Build the Project
Step Use the Connector with Username and Password Login
Optional Step Use the Connector with OAuth Bearer Token Login
Learn More About EMP Connector
Example Subscribe to and Replay Events Using a Lightning Component
Example Subscribe to and Replay Events Using a Visualforce Page
Prerequisites
Deploy a Sample Project to Your Org
Assign a Permission Set
Durable PushTopic Streaming Sample
Durable Generic Streaming Sample
Replay Events Sample Code Walkthrough
Example Interactive Visualforce Page without Replay
Prerequisites
Step Create an Object
Step Create a PushTopic
Step Create the Static Resources
Step Create a Visualforce Page
Step Test the PushTopic Channel
Example Authentication
Set Up Authentication for Developer Testing
Set Up Authorization with OAuth
Chapter Client Connection Considerations
Clients and Timeouts
Clients and Cookies for Streaming API
Supported CometD Versions
HTTPS Recommended
Debugging Streaming API Applications
Handling Streaming API Errors
Streaming API Error Codes
Chapter PushTopic Events Legacy
Working with PushTopics
PushTopic Queries
Event Notification Rules
Replay PushTopic Streaming Events
Filtered Subscriptions
Bulk Subscriptions
Deactivating a Push Topic
PushTopic Considerations
PushTopic Notification Message Order
Considerations for Multiple Notifications in the Same Transaction
PushTopic Streaming Allocations
Reference PushTopic
Chapter Generic Events Legacy
Replay Generic Streaming Events with Durable Generic Streaming
Generic Streaming Quick Start
Create a Streaming Channel
Run a Java Client with Username and Password Login
Run a Java Client with OAuth Bearer Token Login
Generate Events Using REST
Generic Streaming Allocations
Reference StreamingChannel
Reference Streaming Channel Push REST API
Chapter Monitoring Event Usage