Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: moving channel._disconnect call from closeConnection to disconnectUser #639

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

vishalnarkhede
Copy link
Contributor

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

channel._disconnect should only happen in disconnectUser, and not closeConnection. Because once you call channel._disconnect, it will be completely blocked of all the functionality. This issue was introduced in latest minor version. We need to think a bit more about this disconnect functionality, but for now to unblock react/react-native SDKs. This should fix it.

@github-actions
Copy link
Contributor

Size Change: +93 B (0%)

Total Size: 216 kB

Filename Size Change
dist/browser.es.js 47 kB +20 B (0%)
dist/browser.full-bundle.min.js 27.3 kB +13 B (0%)
dist/browser.js 47.5 kB +19 B (0%)
dist/index.es.js 47 kB +21 B (0%)
dist/index.js 47.6 kB +20 B (0%)

compressed-size-action

Copy link
Contributor

@ferhatelmas ferhatelmas left a comment

Choose a reason for hiding this comment

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

LGTM

@vishalnarkhede vishalnarkhede merged commit 556a8f3 into master Mar 11, 2021
@vishalnarkhede vishalnarkhede deleted the vishal/reconnection-fix branch March 11, 2021 12:24
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.

2 participants