NestJS Server-Sent Events (SSE) connection doesn’t close automatically and subsequent requests fail silently
I’m building a feature where the frontend sends a POST request to /mailer/inform
with an array of email addresses. This triggers sending individual emails to those addresses. I’m using Server-Sent Events (SSE) at the /mailer/email-events
endpoint to provide real-time updates to the frontend about the status of each email being sent (success/failure). I expected the SSE connection to close automatically after all email statuses were sent.