module

package
v0.0.0-...-4f00b74 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Broadcast = make(chan string)
View Source
var Clients = make(map[string]*websocket.Conn) // Note: although large maps with pointer-like types (e.g. strings) as keys are slow, using pointers themselves as keys is acceptable and fast
View Source
var Register = make(chan Client)
View Source
var SendMesssage = make(chan Message)
View Source
var Unregister = make(chan string)

Functions

func RunHub

func RunHub()

Types

type Client

type Client struct {
	Id   string
	Conn *websocket.Conn

} // Add more data to this type if needed

type Message

type Message struct {
	Id      string
	Message string

} // Add more data to this type if needed

Jump to

Keyboard shortcuts

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