hub

package
v0.2.30 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

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

func NewHub

func NewHub(idleDuration time.Duration) *Hub

func (*Hub) ActivateConn

func (this *Hub) ActivateConn(conn lokas.IConn)

func (*Hub) AddConn

func (this *Hub) AddConn(conn lokas.IConn)

func (*Hub) Broadcast

func (this *Hub) Broadcast(sessionIds []util.ID, data []byte)

func (*Hub) GetActiveConnNum

func (this *Hub) GetActiveConnNum() int

func (*Hub) RemoveConn

func (this *Hub) RemoveConn(conn lokas.IConn)

func (*Hub) Stop

func (this *Hub) Stop()

Jump to

Keyboard shortcuts

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