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

希望能开放websocket扩展 #13818

Closed
4 tasks done
repertory opened this issue Jul 13, 2023 · 2 comments
Closed
4 tasks done

希望能开放websocket扩展 #13818

repertory opened this issue Jul 13, 2023 · 2 comments

Comments

@repertory
Copy link

repertory commented Jul 13, 2023

Description

在前一个版本还能将服务端的中间件通过扩展方式将websocket和express中间件添加到vite服务中,虽然开发模式得加vite-hmr头才能访问自定义websocket,但好歹能扩展

image

image

升级版本后发现websocket路径也被限制了,导致必须重写hmr服务才行,后期升级太麻烦了

image

Suggested solution

建议在vite.config.js中增加配置来开放自定义websocket,可选vite-hmr头或者不启用url匹配规则

Alternative

No response

Additional context

No response

Validations

@bluwy
Copy link
Member

bluwy commented Jul 13, 2023

Related: #13218

@repertory
Copy link
Author

@bluwy 感谢,问题解决了

image

@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants