Skip to content

fix: check for ws existence before closing #3238

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

Merged
merged 1 commit into from
Mar 10, 2025
Merged

fix: check for ws existence before closing #3238

merged 1 commit into from
Mar 10, 2025

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

websocket can be undefined if it is disabled so we should check if it exists before accessing close()

Copy link

pkg-pr-new bot commented Mar 9, 2025

npm i https://pkg.pr.new/@nuxt/content@3238

commit: 0ddb4b7

Copy link

Deploying content with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: 0ddb4b7
Status:Β βœ…Β  Deploy successful!
Preview URL: https://3480c54b.content-f0q.pages.dev
Branch Preview URL: https://fix-close-ws.content-f0q.pages.dev

View logs

@farnabaz farnabaz merged commit 6ec0eb8 into main Mar 10, 2025
5 checks passed
@farnabaz farnabaz deleted the fix/close-ws branch March 10, 2025 10:11
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