handler

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIsNotAllowedToHost = errors.New("is not allowed to host")
	ErrIsNotTheHost       = errors.New("is not the host")
	ErrIsAlreadyTheHost   = errors.New("is already the host")
	ErrIsAlreadyHosted    = errors.New("is already hosted")
)

Functions

This section is empty.

Types

type MessageHandlerCtx

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

func New

func (*MessageHandlerCtx) Message

func (h *MessageHandlerCtx) Message(session types.Session, data types.WebSocketMessage) bool

func (*MessageHandlerCtx) SessionConnected

func (h *MessageHandlerCtx) SessionConnected(session types.Session) error

func (*MessageHandlerCtx) SessionCreated

func (h *MessageHandlerCtx) SessionCreated(session types.Session) error

func (*MessageHandlerCtx) SessionDeleted

func (h *MessageHandlerCtx) SessionDeleted(session types.Session) error

func (*MessageHandlerCtx) SessionDisconnected

func (h *MessageHandlerCtx) SessionDisconnected(session types.Session) error

func (*MessageHandlerCtx) SessionProfileChanged

func (h *MessageHandlerCtx) SessionProfileChanged(session types.Session) error

func (*MessageHandlerCtx) SessionStateChanged

func (h *MessageHandlerCtx) SessionStateChanged(session types.Session) error

Jump to

Keyboard shortcuts

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