Documentation
¶
Index ¶
- func EndRoom(roomId misc.RoomId)
- func GetGlobalLobby(logger *slog.Logger) misc.RoomId
- func Join(roomId misc.RoomId, listenerId misc.ListenerId, ...)
- func Leave(roomId misc.RoomId, listenerId misc.ListenerId)
- func LeaveAllRooms(listenerId misc.ListenerId)
- func RemoveAllRooms()
- func Send(msg message.Message)
- type Room
- type RoomListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
func Join(roomId misc.RoomId, listenerId misc.ListenerId, handler pubsub.TopicMessageHandler)
func LeaveAllRooms ¶
func LeaveAllRooms(listenerId misc.ListenerId)
func RemoveAllRooms ¶
func RemoveAllRooms()
Types ¶
type Room ¶
func NewRoomWithId ¶
func (*Room) HasListener ¶
func (r *Room) HasListener(listenerId misc.ListenerId) bool
func (*Room) JSTemplate ¶
func (r *Room) JSTemplate(isolate *v8go.Isolate) *v8go.ObjectTemplate
func (*Room) OnMessageFromTopic ¶
type RoomListener ¶
Listen for messages in the room
Click to show internal directories.
Click to hide internal directories.