Open msundvick opened 1 year ago
I've transfered this to fastify-http-proxy because that's where the core of the issue is.
Unfortunately @fastify/websocket
and @fastify/http-proxy
are incompatible. Long story short, they "plug" into the same event listener on the http server and must do different things to do their job.
Some reconciliation might be possible long term, but it's a significant amount of work that I do not have the bandwidth to take on. If anybody is willing, I would love to see this investigated and fixed.
https://github.com/fastify/fastify-websocket/issues/249 was correctly fixed there, the problem relies on this module now.
Prerequisites
Fastify version
4.20.0
Plugin version
8.2.0
Node.js version
16.18.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
22.04
Description
Adding both a websocket endpoint and a proxy to a websocket endpoint doesn't work. Error seems mostly the same as https://github.com/fastify/fastify-websocket/issues/249. If I switch around the order I add the proxy and websocket endpoint, I can get it to log the error and continue instead of just crashing, but still doesn't work.
Steps to Reproduce
Expected Behavior
No response