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

Support custom and whm socket integration type #13

Conversation

ItamarGronich
Copy link
Contributor

Add support for webpack-hot-middleware ("whm" option in overlay.socketIntegration plugin option).

This code is copied and modified from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/f770d3962c388da01eeda7079bff5f40c93992d2/sockets/WHMEventSource.js

@ItamarGronich
Copy link
Contributor Author

Sorry! just realized that there's stuff still missing here like the client error handling code for WHM.
will implement and notify when done

@LingyuCoder
Copy link
Contributor

LingyuCoder commented Dec 23, 2024

Has this PR been completed now? If so, this pr can be merged. It would be even better if some test cases could be added.

@ItamarGronich
Copy link
Contributor Author

@LingyuCoder yeah it's done now.
also added a test.
just left a couple of questions on the PR just to make sure i was correct about my understanding.
Thanks for the patience.

@ItamarGronich ItamarGronich changed the title Support webpack-hot-middleware socketIntegration type Support custom and whm socket integration type Dec 24, 2024
Copy link
Contributor

@LingyuCoder LingyuCoder left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. Thank you very much for your contribution.

@LingyuCoder LingyuCoder merged commit 37b59a9 into rspack-contrib:main Dec 30, 2024
1 check passed
@ItamarGronich ItamarGronich deleted the feat/support-whm-socket-integration branch December 31, 2024 08:21
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