This is an example of a server sent event that is handled using go, and I also created a client as "streamer" and publisher
Using golang version 1.19
go run main.go
- Open your browser on port 8080
- On main routes, it should be the sreamer client
- Access example
http://localhost:8080/post
to access the publisher - If someone post a tweet, then it will appear on the "streamer" client in realtime