tak_ws

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageCb added in v0.16.4

type MessageCb func(msg *cot.CotMessage)

type WsClientHandler

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

func New

func New(name string, user *model.User, ws *air.WebSocket, mc MessageCb) *WsClientHandler

func (*WsClientHandler) CanSeeScope added in v0.16.3

func (w *WsClientHandler) CanSeeScope(scope string) bool

func (*WsClientHandler) GetLastSeen

func (w *WsClientHandler) GetLastSeen() *time.Time

func (*WsClientHandler) GetName

func (w *WsClientHandler) GetName() string

func (*WsClientHandler) GetSerial added in v0.18.0

func (w *WsClientHandler) GetSerial() string

func (*WsClientHandler) GetUids

func (w *WsClientHandler) GetUids() map[string]string

func (*WsClientHandler) GetUser

func (w *WsClientHandler) GetUser() *model.User

func (*WsClientHandler) GetVersion

func (w *WsClientHandler) GetVersion() int32

func (*WsClientHandler) HasUID

func (w *WsClientHandler) HasUID(uid string) bool

func (*WsClientHandler) IsActive

func (w *WsClientHandler) IsActive() bool

func (*WsClientHandler) Listen

func (w *WsClientHandler) Listen()

func (*WsClientHandler) SendCot

func (w *WsClientHandler) SendCot(msg *cotproto.TakMessage) error

func (*WsClientHandler) SendMsg

func (w *WsClientHandler) SendMsg(msg *cot.CotMessage) error

func (*WsClientHandler) Stop added in v0.18.0

func (w *WsClientHandler) Stop()

Jump to

Keyboard shortcuts

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