ws

package
v0.0.0-...-04ac836 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WsClients

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

func NewWsClients

func NewWsClients() *WsClients

func (*WsClients) AddConn

func (wh *WsClients) AddConn(conn *websocket.Conn)

func (*WsClients) Broadcast

func (wh *WsClients) Broadcast(msg string)

func (*WsClients) CloseConn

func (wh *WsClients) CloseConn(conn *websocket.Conn)

func (*WsClients) EndWS

func (wh *WsClients) EndWS()

func (*WsClients) RemoveConn

func (wh *WsClients) RemoveConn(conn *websocket.Conn)

func (*WsClients) StartWS

func (wh *WsClients) StartWS()

Jump to

Keyboard shortcuts

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