Open
Description
I'm trying to use this library to proxy websockets. I've tried several approaches but so far none of them are working.
import { NextApiRequest, NextApiResponse } from "next";
import httpProxyMiddleware from "next-http-proxy-middleware";
export const config = {
api: {
bodyParser: false,
externalResolver: true,
},
};
export default async (req: NextApiRequest, res: NextApiResponse) => {
return httpProxyMiddleware(req, res, {
target: "ws://localhost:3001/graphql",
ws: true,
});
};
Is it possible to do it with this library?