This is just a POC of a SSE server containing two endpoints, 1 for subscribing and 1 for publishing messages.
You can use just to run the server locally
just runAfter running the server, you can subscribe using curl with the following command
curl "localhost:8000/subscribe?topic=notification"Later, you can simply publish a message in the /publish endpoint with the following command
curl "localhsot:8000/publish?topic=notification" -d '{"name": "Tulkdan", "value": 2000 }'