Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Return in callback PNReconnectedCategory status for reconnect method#227

Merged
kleewho merged 2 commits intomasterpubnub/java:masterfrom
SDK-1549_2pubnub/java:SDK-1549_2Copy head branch name to clipboard
Dec 10, 2021
Merged

Return in callback PNReconnectedCategory status for reconnect method#227
kleewho merged 2 commits intomasterpubnub/java:masterfrom
SDK-1549_2pubnub/java:SDK-1549_2Copy head branch name to clipboard

Conversation

@kleewho
Copy link
Contributor

@kleewho kleewho commented Nov 29, 2021

fix: Emit PNReconnectedCategory in case of successful manual reconnection

unsubscribe((UnsubscribeOperation) pubSubOperation);
stateChanged = true;
shouldAnnounce = true;
announceStatus = PNStatusCategory.PNConnectedCategory;
Copy link
Contributor

Choose a reason for hiding this comment

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

why PNConnectedCategory?

Copy link
Contributor Author

@kleewho kleewho Nov 29, 2021

Choose a reason for hiding this comment

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

We are notifying users that we're still connected after they unsubscribe from some channels assuming that at least one has left. In case they unsubscribed from everything that won't have any effect

Choose a reason for hiding this comment

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

Shouldn't it be PNReconnectedCategory instead of PNConnectedCategory ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was previously PNConnectedCategory so I kept it the same way

bartk
bartk previously approved these changes Dec 7, 2021
@kleewho
Copy link
Contributor Author

kleewho commented Dec 9, 2021

@client-engineering-bot release

@kleewho kleewho merged commit cc10618 into master Dec 10, 2021
@kleewho kleewho deleted the SDK-1549_2 branch December 10, 2021 08:57
@github-actions
Copy link

🚀 Release successfully completed 🚀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.