livereload

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast()

Broadcast sends a reload signal to all connected clients

func InjectMiddleware

func InjectMiddleware(next http.Handler) http.Handler

InjectMiddleware wraps the handler to inject live reload script in development mode

Types

type Broker

type Broker struct {
	// contains filtered or unexported fields
}

Broker manages SSE connections

var Instance *Broker

Global instance

func NewBroker

func NewBroker() *Broker

func (*Broker) ServeHTTP

func (b *Broker) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Broker) Start

func (b *Broker) Start()

Jump to

Keyboard shortcuts

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