/sse-go-fiber

Example of SSE in Go using Fiber

Primary LanguageGo

sse-go-fiber

Run the server with

go run main.go
open example.html

docker run -p 8080:8080 ghcr.io/emanuelef/sse-go-fiber:latest

docker run --restart=always -d -p 8080:8080 ghcr.io/emanuelef/sse-go-fiber:latest

Open the example.html page in a browser

gofiber/fiber#429 (comment)

https://developer.mozilla.org/en-US/docs/Web/API/EventSource

https://shopify.engineering/server-sent-events-data-streaming

whatwg/html#8297 (comment)

whatwg/html#7571 (comment)

https://ably.com/topic/server-sent-events

https://germano.dev/sse-websockets/

https://www.smashingmagazine.com/2018/02/sse-websockets-data-flow-http2

k6 SSE support not there yet grafana/k6#746 https://community.grafana.com/t/is-it-possible-to-test-service-sent-events/99498