We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket.end()
We use socket.end() to terminate websocket proxy. Is it correct way? There is no docs for that. We suspect it causes memory leak.
We use next config to add extra auth to some target websocket server.
const proxy = createProxyMiddleware({ target: "ws://our.target.ws.com", changeOrigin: true, ws: true, on: { error: err => { console.log('WARN: http proxy error', err); }, proxyReqWs: (proxyReq, req, socket) => { // some auth logic if (!auth) { socket.end(); } }, }, });
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature you'd love to see
We use
socket.end()
to terminate websocket proxy. Is it correct way? There is no docs for that. We suspect it causes memory leak.We use next config to add extra auth to some target websocket server.
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: