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.

# Structs

Event is the packet of data that gets sent over the wire to a connected client.

# Interfaces

Eventable represents an object that can be converted to an SSE compatible event.
Stream represents an output stream that data can be written to.