Skip to content

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

@quicklearning123

Description

@quicklearning123

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions