pubsub: github.com/gocontrib/pubsub/sse Index | Files

package sse

import "github.com/gocontrib/pubsub/sse"

Index

Package Files

sse.go

func GetEventStream Uses

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

GetEventStream streams events in text/event-stream format.

GET /api/event/stream/{channel}

func SendEvents Uses

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

SendEvents streams events from specified channels as Server Sent Events packets

Package sse imports 9 packages (graph). Updated 2019-03-20. Refresh now. Tools for package owners.