Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientGone = errors.New("sse: client disconnected")
Functions ¶
func Handler ¶
func Handler(heartbeatInterval time.Duration, fn StreamFunc) http.HandlerFunc
func ResumeFrom ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer emits server-sent events on a single HTTP response stream.
func (*Writer) SetSequence ¶
Click to show internal directories.
Click to hide internal directories.