Registry / web-framework / gin-contrib-sse

gin-contrib-sse

JSON →
library1.1.1gogounverified

Server-Sent Events (SSE) support for the Gin web framework, enabling real-time event streaming.

go get github.com/gin-contrib/sse
INSTALL
IMPORT
SIG · GIN-CONTRIB-SSE
G
gin-contrib-sse
web-frameworkgov1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sse
github.com/gin-contrib/sse

Send an SSE event from a Gin handler.

package main import ( "net/http" "github.com/gin-contrib/sse" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.GET("/events", func(c *gin.Context) { sse.Encode(c.Writer, sse.Event{ Event: "message", Data: []byte("hello"), }) }) r.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
gin-contrib-sse — go get gin-contrib-sse · libregistry