chat

package
Version: v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// All services in master server
	Services = &component.Components{}
)

Functions

func OnSessionClosed

func OnSessionClosed(s *session.Session)

Types

type RoomService

type RoomService struct {
	component.Base
	// contains filtered or unexported fields
}

func (*RoomService) JoinRoom

func (rs *RoomService) JoinRoom(s *session.Session, msg *protocol.JoinRoomRequest) error

func (*RoomService) SyncMessage

func (rs *RoomService) SyncMessage(s *session.Session, msg *SyncMessage) error

type SyncMessage

type SyncMessage struct {
	Name    string `json:"name"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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