You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we deploy web application for SSE in argocd with nginx server we are not able close SSE server connection on closing of event stream.
For front end we are using Angular 16 and for backend service we are using NodeJS
Step-by-step reproduction instructions
1. From angular we are using event sourcefor calling proxy middleware which will connect to backend services.
this.eventSource = new EventSource("host/event/api");
2) app.use('/event/*', createProxyMiddleware(options));
On receiving this request on middleware, it will subscribe to close event.
3) On closing of tab we are calling this.eventSource.close() which should close proxy event.
Its working inlocal but with argoCD we are not able to receive close event.
Expected behavior (be clear and concise)
It should close SSE connection on closing of event stream when we deploy our application in argoCD.
We are able to close SSE event in local machine without using argoCD.
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
constoptions={target: "{Notification service url}"+"/event/",changeOrigin: true,logger: console,onProxyReq: (proxyReq,req,res)=>{console.log("On proxy req set custom proxy header")res.on('close',()=>{console.log("On close for proxy res");proxyReq.destroy()});}};
What OS/version and node/version are you seeing the problem?
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
When we deploy web application for SSE in argocd with nginx server we are not able close SSE server connection on closing of event stream.
For front end we are using Angular 16 and for backend service we are using NodeJS
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
It should close SSE connection on closing of event stream when we deploy our application in argoCD.
We are able to close SSE event in local machine without using argoCD.
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: