sse

package
v0.0.0-...-54848bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventStream

func GetEventStream(w http.ResponseWriter, r *http.Request)

GetEventStream streams events in text/event-stream format.

GET /api/event/stream/{channel}

func SendEvents

func SendEvents(w http.ResponseWriter, r *http.Request, channels []string)

SendEvents streams events from specified channels as Server Sent Events packets

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL