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(WebSocketShard): handle initial connect being a resume #9549

Merged
merged 3 commits into from
May 11, 2023

Conversation

didinele
Copy link
Member

@didinele didinele commented May 8, 2023

Please describe the changes this PR makes and why it should be merged:
Closes #9548

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@didinele didinele requested a review from a team as a code owner May 8, 2023 10:28
@didinele didinele requested review from vladfrangu and iCrawl May 8, 2023 10:28
@vercel
Copy link

vercel bot commented May 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discord-js ❌ Failed (Inspect) May 11, 2023 5:40pm
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2023 5:40pm

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #9549 (2af4345) into main (7b617bd) will increase coverage by 0.19%.
The diff coverage is 0.00%.

❗ Current head 2af4345 differs from pull request most recent head 200e01e. Consider uploading reports for the commit 200e01e to get more accurate results

@@            Coverage Diff             @@
##             main    #9549      +/-   ##
==========================================
+ Coverage   58.38%   58.57%   +0.19%     
==========================================
  Files         227      226       -1     
  Lines       14856    14806      -50     
  Branches     1133     1132       -1     
==========================================
  Hits         8673     8673              
+ Misses       6143     6093      -50     
  Partials       40       40              
Flag Coverage Δ
ws 53.88% <0.00%> (-0.42%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/ws/src/ws/WebSocketShard.ts 19.84% <0.00%> (-0.43%) ⬇️

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Jiralite Jiralite added this to the ws 0.9.0 milestone May 8, 2023
@Jiralite Jiralite requested a review from vladfrangu May 8, 2023 12:18
@github-actions
Copy link

github-actions bot commented May 11, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 65
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 94
🟠 PWA 70

Lighthouse ran on https://discord-js-guide-git-fix-ws-initial-resume-discordjs.vercel.app/guide/home/introduction

@kodiakhq kodiakhq bot merged commit 4dcc9c5 into main May 11, 2023
@kodiakhq kodiakhq bot deleted the fix/ws-initial-resume branch May 11, 2023 17:42
Idris1401 pushed a commit to Idris1401/discord.js that referenced this pull request May 12, 2023
…#9549)

* fix(WebSocketShard): handle initial connect being a resume

* chore: remove leftover

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

@discordjs/ws WebSocketShard#connect not resolved when resuming
5 participants