websockets

package
v0.0.0-...-62d9380 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(message []byte)

func ServeWebSocket

func ServeWebSocket(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 GetHub

func GetHub() *Hub

func NewHub

func NewHub() *Hub

func (*Hub) Ping

func (h *Hub) Ping()

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