Registry / networking / r3labs-sse

r3labs-sse

JSON →
librarygogounverified

A Go library for handling Server-Sent Events (SSE) both as client and server.

go get github.com/r3labs/sse
INSTALL
IMPORT
SIG · R3LABS-SSE
R
r3labs-sse
networkinggo
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/r3labs/sse

Subscribe to an SSE stream and print incoming messages.

package main import ( "fmt" "github.com/r3labs/sse" ) func main() { client := sse.NewClient("http://example.com/events") client.Subscribe("messages", func(msg *sse.Event) { fmt.Printf("Received: %s\n", msg.Data) }) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
r3labs-sse — go get r3labs-sse · libregistry