example

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Example: live feed using go-datastar patches as values with go-sse Broadcaster.

Run: go run ./example/ Open: http://localhost:8765

Slow-client behavior: when a subscriber's buffer is full the broadcaster drops events for that subscriber only — observe it with sse.WithOnDrop, as done below (see TestWithOnDropFiresWhenSubscriberBufferFull for the pattern in test form).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL