ws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const HotReloadScript = `` /* 760-byte string literal not displayed */

Variables

This section is empty.

Functions

func AddHotReloadScript

func AddHotReloadScript(path string, port string) (*template.Template, error)

func NewClient

func NewClient(hub *Hub, w http.ResponseWriter, r *http.Request)

Types

type Client

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

type Hub

type Hub struct {
	Broadcast chan []byte
	// contains filtered or unexported fields
}

func NewHub

func NewHub() *Hub

func (*Hub) Run

func (h *Hub) Run()

Jump to

Keyboard shortcuts

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