How can I custom HMR websocket client in rsbuild? #3531
limuyao1996
started this conversation in
General
Replies: 1 comment 1 reply
-
rsbuild 有办法能让客户端在创建 websocket 请求时再动态计算一个 ws 地址吗?我理解应该支持 client.hostname client.path 传一个方法,应该比较好支持? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi~ In my web project, there are some local debugging scenarios that require customizing the WebSocket request address for HMR. For example, when using https + domain in the browser, the WebSocket also needs to use wss + domain. For mobile debugging, only http + ip is required, and the WebSocket should also use ws + ip. I need support https & http at same time. In webpack, I used an http-proxy server, and customized the WebSocket client file using webSocketTransport. Is there a way to achieve this in rsbuild currently?
Beta Was this translation helpful? Give feedback.
All reactions