chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.6k stars 828 forks source link

fix(proxyReqWs): catch socket errors on 0.19.2 #972

Open Plevi1337 opened 4 months ago

Plevi1337 commented 4 months ago

This PR fixes issue #1642 on the 0.19.x branch.

Description

The PR copies proposed changes form this comment

Motivation and Context

The issue has already been fixed and closed on newer versions. Unfortunately we are using an older version of angular and one of the core angular libraries use the 0.19.1 version of this package. We've created a private fork with this fix, but figured, someone could use this as well.

How has this been tested?

We've created a fork for a private npm feed. It works well for us.

Types of changes

Checklist:

PS

This is my first ever contribution to a public repo. I've tried to follow every policy, as best as I could. Sorry, if I missed something.