This project simulates how to subscribe a long task progress using Server-Sent Events (SSE).
chmod +x start.sh
chmod +x subscribe.sh
go run main.go
Start a task with 20 seconds duration.
./start.sh 20
Will return a task ID
1
Subcribe the task with a task ID = 1.
./subscribe.sh 1