Skip to content

Tulkdan/go-sse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSE server in Golang

This is just a POC of a SSE server containing two endpoints, 1 for subscribing and 1 for publishing messages.

How to run

You can use just to run the server locally

just run

How to use

After 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 }'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published