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).
Directories
¶
| Path | Synopsis |
|---|---|
|
Command domain-adapter demonstrates the "patches as values" architecture: a domain layer speaks its own events, an EventBridge translates them into go-datastar Patch values, and the transport layer stores/replays/broadcasts those values without knowing anything about the domain.
|
Command domain-adapter demonstrates the "patches as values" architecture: a domain layer speaks its own events, an EventBridge translates them into go-datastar Patch values, and the transport layer stores/replays/broadcasts those values without knowing anything about the domain. |
Click to show internal directories.
Click to hide internal directories.