Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

pawlobanano/server-sent-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

server-sent-events

Proof of concept for Server-Sent Events (SSE) - a server push technology enabling a client to receive automatic updates from a server via an HTTP connection, and describes how servers can initiate data transmission towards clients once an initial client connection has been established.

Example

Run HTTP server

go run main.go

Subscribe

curl -N http://localhost:8080/subscribe?topic=news

Publish message on topic

curl "http://localhost:8080/publish?topic=news&message=Hello%20world"

About

Proof of concept for Server-Sent Events (SSE) - a server push technology enabling a client to receive automatic updates from a server via an HTTP connection, and describes how servers can initiate data transmission towards clients once an initial client connection has been established

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors