Documentation ¶
Index ¶
- type WSHandler
- func (ws *WSHandler) GetSessionForUsersIfExists(userIds []string) ([]*melody.Session, []string)
- func (ws *WSHandler) HandleBeginWSConnection(params apiRouter.ApiHandlerGenericParams) error
- func (ws *WSHandler) HandleConnect(s *melody.Session)
- func (ws *WSHandler) HandleDisconnect(s *melody.Session)
- func (ws *WSHandler) HandleMessage(s *melody.Session, msg []byte)
- func (ws *WSHandler) HandleSocketCreation(params apiRouter.ApiHandlerGenericPublicParams) error
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 ¶
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 (*WSHandler) HandleDisconnect ¶
func (*WSHandler) HandleSocketCreation ¶
func (ws *WSHandler) HandleSocketCreation(params apiRouter.ApiHandlerGenericPublicParams) error
Click to show internal directories.
Click to hide internal directories.