I user eggjs with http-proxy-middleware, and add a proxy for websocket request.
But I get a error "WebSocket is closed before the connection is established" sometime.
Step-by-step reproduction instructions
I have no idea about how to get a reproduction.
Expected behavior (be clear and concise)
send and recv successfully every time
What http-proxy-middleware configuration are you using?
ws:true
What OS/version and node/version are you seeing the problem?
node:14.7
mac os
Additional context (optional)
Everything goes well before add the proxy of websocket
yarn why http-proxy-middleware
ORnpm ls http-proxy-middleware
output (mask private folder names with *****)http-proxy-middleware
.Describe the bug (be clear and concise)
I user eggjs with http-proxy-middleware, and add a proxy for websocket request. But I get a error "WebSocket is closed before the connection is established" sometime.
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
send and recv successfully every time
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
Everything goes well before add the proxy of websocket
No response