this is a great question, the example I gave is just a simplified way. you could wait for a status from the database, or try to send a specific identifier to the server for specific events like you're asking about.
I think it depends on if you need one way event recognition or you need multiple way event recognition. If you just need a Events from the server to the client, then SSE will suffice. But if you're doing like a sub pub model, web sockets will be a better fit. hope that helps! And thank you so much for watching 🙏