Skip to content

9illes/sse-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Side Events

Usage

1. Start SSE server

go run .

2. Open static web page with SSE listener

firefox static/index.html
# or
firefox http://localhost:3000/static

3. Trigger SSE event

curl http://localhost:3000/ping

The html page should have been updated.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published