Documentation ¶
Rendered for js/wasm
Overview ¶
Package lobby contains code to view available games and to close the websocket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DOM ¶ added in v1.2.0
type DOM interface { QuerySelector(query string) js.Value FormatTime(utcSeconds int64) string CloneElement(query string) js.Value RegisterFuncs(ctx context.Context, wg *sync.WaitGroup, parentName string, jsFuncs map[string]js.Func) NewJsFunc(fn func()) js.Func NewJsEventFuncAsync(fn func(event js.Value), async bool) js.Func }
DOM interacts with the page.
type Game ¶ added in v1.2.0
type Game interface {
Leave()
}
Game is held so the lobby can notify of it when the user leaves.
type Lobby ¶
type Lobby struct { Socket Socket // contains filtered or unexported fields }
Lobby handles viewing, joining, and creating games on the server.
Click to show internal directories.
Click to hide internal directories.