ws

package
v4.32.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WSHandler

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

func MakeWSHandler

func MakeWSHandler(m *melody.Melody, svcs *services.APIServices) *WSHandler

func (*WSHandler) GetSessionForUsersIfExists

func (ws *WSHandler) GetSessionForUsersIfExists(userIds []string) ([]*melody.Session, []string)

For a list of user ids, this returns all the sessions we have for them, and a list of user ids we didn't find sessions for

func (*WSHandler) HandleBeginWSConnection

func (ws *WSHandler) HandleBeginWSConnection(params apiRouter.ApiHandlerGenericParams) error

func (*WSHandler) HandleConnect

func (ws *WSHandler) HandleConnect(s *melody.Session)

func (*WSHandler) HandleDisconnect

func (ws *WSHandler) HandleDisconnect(s *melody.Session)

func (*WSHandler) HandleMessage

func (ws *WSHandler) HandleMessage(s *melody.Session, msg []byte)

func (*WSHandler) HandleSocketCreation

func (ws *WSHandler) HandleSocketCreation(params apiRouter.ApiHandlerGenericPublicParams) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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