-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
help wantedExtra attention is neededExtra attention is needed
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?
Jared-Dahlke, lucasbento and sonnylazuardistegano
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed