package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Apr 15, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package lobby contains code to view available games and to close the websocket.
type Lobby struct {
Socket Socket
}
Lobby handles viewing, joining, and creating games on the server.
New creates a lobby for games.
InitDom registers lobby dom functions.
SetGameInfos updates the game-infos table with the game infos for the username.
type Socket interface {
Connect(event js.Value) error
Close()
}
Socket is a structure that connects the server to the lobby.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.