extension

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCount

func ClientCount() int

ClientCount returns the number of currently connected clients.

func Connect

func Connect(w http.ResponseWriter, r *http.Request) (*websocket.Conn, error)

Connect upgrades the request to websocket and tracks the client. When the connection is lost, the client is removed from the hub.

func HasClient

func HasClient(applicationName string) bool

Types

type ConnectRequest

type ConnectRequest struct {
	ApplicationName string `json:"application_name"`
}

Jump to

Keyboard shortcuts

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