Skip to content

fix(server): remove unused socket messages#5740

Merged
chenjiahan merged 1 commit intomainfrom
remove_socket_0802
Aug 2, 2025
Merged

fix(server): remove unused socket messages#5740
chenjiahan merged 1 commit intomainfrom
remove_socket_0802

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

This pull request simplifies the Socket server by removing unused message types and redundant methods. The hot and invalid messages are no longer used by the HMR client, so we don't need to send these messages.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 2, 2025 07:14
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 2, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 0a79044
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/688dbaf36497540008d264e9
😎 Deploy Preview https://deploy-preview-5740--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 70 (🔴 down 5 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request removes unused Socket message types from the HMR (Hot Module Replacement) system to simplify the codebase. The PR eliminates the hot and invalid message types that are no longer consumed by the HMR client.

  • Removes unused SocketMessageHot and SocketMessageInvalid type definitions
  • Eliminates the unused singleWrite method and hot message initialization
  • Removes the invalid message dispatch in the compilation manager

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/core/src/server/socketServer.ts Removes unused message type definitions, singleWrite method, and hot message initialization
packages/core/src/server/compilationManager.ts Removes the dispatch of unused invalid message type

Comment thread packages/core/src/server/socketServer.ts
@chenjiahan chenjiahan merged commit 322bb9d into main Aug 2, 2025
12 checks passed
@chenjiahan chenjiahan deleted the remove_socket_0802 branch August 2, 2025 07:20
@chenjiahan chenjiahan mentioned this pull request Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants