NOTE: There is no proper way within the spec for the server to “close” the SSE connection. There are ways around it.
I read that in https://hexdocs.pm/mist/mist.html#server_sent_events.
In https://stackoverflow.com/a/78914434 it is suggested to just respond with 204 to close the SSE connection. Would that work?