Documentation
¶
Overview ¶
Package sse provides a dependency-free server-sent events presentation fanout adapter for runtime/contracts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHub = errors.New("sse hub cannot be nil")
ErrNoHub is returned by helpers that require a hub but receive nil.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub fans presentation events out to connected server-sent events clients.
func (*Hub) ClientCount ¶
ClientCount returns the number of currently connected clients.
func (*Hub) SendPresentationEvents ¶
SendPresentationEvents broadcasts presentation events to connected clients. Non-presentation events are ignored.
Click to show internal directories.
Click to hide internal directories.