livereload

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(upgrader *websocket.Upgrader) http.HandlerFunc

Handler is a HandlerFunc handling the livereload Websocket interaction. Original: https://github.com/gohugoio/hugo/blob/89bd025ebfd2c559039826641702941fc35a7fdb/livereload/livereload.go#L93-L105 Our version is modified to accept a websocket upgrader coming from the server.

func Initialize

func Initialize()

Initialize starts the Websocket Hub handling live reloads. Original: https://github.com/gohugoio/hugo/blob/89bd025ebfd2c559039826641702941fc35a7fdb/livereload/livereload.go#L107

func ReloadDashboard

func ReloadDashboard(uid string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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