nollup
nollup copied to clipboard
Replace express-ws with ws
I need to proxy websocket connection to my backend. I was unable to use express-http-proxy
or http-proxy
along with express-ws
. There was an error during the upgrade handshake. Handling the upgrade directly with ws
fixes the issue. I also added the server
object to the before
and after
since I needed it to handle the WS upgrade.
Thanks for reviewing!
Looks good. I'll have a proper review as soon as I can! :)
I had forgotten about updating the tests, it might take me some time to do that, so not ready for review yet. I'll update when I can.
Went ahead with the removal of express-ws
for ws
in 0.18.0
.