package
0.0.0-20181003211919-798156fdb816
Repository: https://github.com/digitalbitsorg/go.git
Documentation: pkg.go.dev
# Functions
NewStream creates a new stream against the provided response writer.
Pumped returns a channel that will be closed the next time the input pump sends.
Tick triggers any open SSE streams to tick by replacing and closing the `nextTick` trigger channel.
WriteEvent does the actual work of formatting an SSE compliant message sending it over the provided ResponseWriter and flushing.
WritePreamble prepares this http connection for streaming using Server Sent Events.