Use of deprecated Streaming API versions
Why is this an issue?
Streaming API versions 23.0 through 36.0 are scheduled for retirement in Winter '25. Code using these deprecated API versions will stop working after the retirement date, causing integration failures and broken functionality.
Examples
Example of incorrect code:
String endpoint = 'https://my.salesforce.com/cometd/23.0/';
Example of correct code:
String endpoint = 'https://my.salesforce.com/cometd/62.0/';
How can I fix violations?
Update API versions: Change the API version in the URL to 37.0 or later (preferably the current version).
Test thoroughly: Verify that streaming functionality works correctly with the updated API version.
When should I disable this rule?
You can disable this rule if you are not using streaming functionality.
Resources
