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(socket-errors): fixed #1598

Merged
merged 2 commits into from
Apr 26, 2024
Merged

fix(socket-errors): fixed #1598

merged 2 commits into from
Apr 26, 2024

Conversation

BLuEScioN
Copy link
Collaborator

I noticed a looping socket error on localhost on mainnet.

The socket hook is trying to use the client set in state to close the socket but the state client is not defined when an immediate connection error takes place, which leads to the disconnect code to never run.
Now I am using the client var reference in the function to disconnect in addition to calling the disconnect code on the client in state if it exists

@BLuEScioN BLuEScioN requested a review from He1DAr April 25, 2024 23:08
Copy link

vercel bot commented Apr 25, 2024

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

Name Status Preview Comments Updated (UTC)
hiro-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 11:12pm

Copy link

codecov bot commented Apr 25, 2024

Codecov Report

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

Project coverage is 20.82%. Comparing base (8f1591a) to head (4741e3d).

Files Patch % Lines
.../BlockList/Sockets/use-stacks-api-socket-client.ts 6.25% 14 Missing and 1 partial ⚠️
...components/BlockList/Sockets/useSubscribeBlocks.ts 0.00% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1598      +/-   ##
==========================================
- Coverage   20.84%   20.82%   -0.02%     
==========================================
  Files         447      447              
  Lines        7590     7591       +1     
  Branches     1590     1590              
==========================================
- Hits         1582     1581       -1     
  Misses       5802     5802              
- Partials      206      208       +2     

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

@BLuEScioN BLuEScioN merged commit 73c1505 into main Apr 26, 2024
14 of 17 checks passed
@BLuEScioN BLuEScioN deleted the fix/socket-errors branch April 26, 2024 15:47
blockstack-devops pushed a commit that referenced this pull request Apr 26, 2024
## [1.169.1](v1.169.0...v1.169.1) (2024-04-26)

### Bug Fixes

* **socket-errors:** fixed ([#1598](#1598)) ([73c1505](73c1505))
@blockstack-devops
Copy link

🎉 This PR is included in version 1.169.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants