Skip to content

Conversation

@parfeon
Copy link
Contributor

@parfeon parfeon commented Apr 14, 2025

feat(retry-policy): retry policy now applies to all requests

The configured retry policy will be used for any failed request.

feat(retry-policy): exponential retry policy used by default for subscribe

By default, the SDK is configured to use an exponential retry policy for failed subscribe requests.

fix(subscribe): add missing subscription change status

PNSubscriptionChangedCategory will be emitted each time the list of channels and groups is changing.

refactor(network): request retries moved to the network

Automated request retry has been moved into the network layer to handle all requests (not only subscribed).

test(cleanup): make proper clean up after each test case

Properly destroy PubNub instance after each test case to make sure that all connections closed and prevent tests from hanging.

The configured retry policy will be used for any failed request.

feat(retry-policy): exponential retry policy used by default for subscribe

By default, the SDK is configured to use an exponential retry policy for failed subscribe requests.

fix(subscribe): add missing `subscription change` status

`PNSubscriptionChangedCategory` will be emitted each time the list of channels and groups is
changing.

refactor(network): request retries moved to the network

Automated request retry has been moved into the network layer to handle all requests (not only
subscribed).

test(cleanup): make proper clean up after each test case

Properly destroy `PubNub` instance after each test case to make sure that all connections closed
and prevent tests from hanging.
@parfeon parfeon added status: done This issue is considered resolved. priority: medium This PR should be reviewed after all high priority PRs. type: feature This PR contains new feature. labels Apr 14, 2025
@parfeon parfeon self-assigned this Apr 14, 2025
Copy link
Contributor

@mohitpubnub mohitpubnub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

some queries!

@mohitpubnub
Copy link
Contributor

@parfeon also, with retry - Is event-engine contract feature tests are also good with same old step definitions here ?

locally this command should execute tests as per updated contract tests (reconnecting removed version of tests)

… emitted

Add test which tests whether `subscription change` is emitted when subscribing to the new channels.
@parfeon
Copy link
Contributor Author

parfeon commented Apr 15, 2025

@pubnub-release-bot release

parfeon added 2 commits April 15, 2025 12:04
Add type, which should be used to completely disable retries.

refactor(retry-policy): add information about which APIs belong to endpoint

Add more information about which APIs are related to the endpoints, which can be excluded.
@parfeon parfeon merged commit b283e9e into master Apr 15, 2025
6 of 7 checks passed
@parfeon parfeon deleted the CLEN-2639 branch April 15, 2025 09:29
@pubnub-release-bot
Copy link
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium This PR should be reviewed after all high priority PRs. status: done This issue is considered resolved. type: feature This PR contains new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants