http-proxy-middleware icon indicating copy to clipboard operation
http-proxy-middleware copied to clipboard

sometime "WebSocket is closed before the connection is established" when proxy for websocket

Open quicklearning123 opened this issue 4 years ago • 2 comments

yarn why http-proxy-middleware OR npm ls http-proxy-middleware output (mask private folder names with *****)

── [email protected]

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

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

No response

quicklearning123 avatar Sep 29 '21 10:09 quicklearning123

Is there anyone know the reason

quicklearning123 avatar Nov 10 '21 08:11 quicklearning123

what's your mac os version?

tinystorm avatar Feb 15 '22 08:02 tinystorm