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

Remove Client.subscribe #789

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Remove Client.subscribe #789

merged 3 commits into from
Apr 26, 2024

Conversation

chacha912
Copy link
Contributor

@chacha912 chacha912 commented Apr 25, 2024

What this PR does / why we need it?

In this PR, Client.subscribe() was removed, and topics connection and sync were added to document.subscribe().

Any background context you want to provide?

What are the relevant tickets?

Fixes #788, #771

Checklist

  • Added relevant tests or not required
  • Didn't break anything

Copy link

codecov bot commented Apr 25, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 80.28%. Comparing base (12522ef) to head (e146411).
Report is 1 commits behind head on main.

Files Patch % Lines
src/document/document.ts 68.18% 6 Missing and 1 partial ⚠️
src/devtools/index.ts 0.00% 3 Missing ⚠️
src/client/client.ts 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #789      +/-   ##
==========================================
- Coverage   80.46%   80.28%   -0.18%     
==========================================
  Files          59       59              
  Lines        4432     4439       +7     
  Branches      890      898       +8     
==========================================
- Hits         3566     3564       -2     
- Misses        604      612       +8     
- Partials      262      263       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. 👍

@hackerwins hackerwins merged commit 7b32fed into main Apr 26, 2024
2 checks passed
@hackerwins hackerwins deleted the remove-client-subscribe branch April 26, 2024 00:27
@hackerwins
Copy link
Member

@chacha912 It would be good to update the documentation for the next release. 🙏
https://yorkie.dev/docs/js-sdk#subscribing-to-client-events

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.

Remove Client.subscribe
2 participants