If you’re trying to use websockets on your
localhost:3000 proxy, you don’t want the
websocket directive; that’s a separate feature from the proxy. The
websocket directive takes either a script or command to run on the host to get its return body.
websocket preset for the
Which adds the necessary upgrade headers - the
proxy directive already supports websockets, the client just needs to be made aware of this.