func (l *Lobby) InitDom(ctx context.Context, wg *sync.WaitGroup) {
	jsFuncs := map[string]js.Func{
		"connect": l.dom.NewJsEventFuncAsync(l.connect, true),
		"leave":   l.dom.NewJsFunc(l.leave),
	}
	l.dom.RegisterFuncs(ctx, wg, "lobby", jsFuncs)
}
// InitDom registers lobby dom functions.
InitDom registers lobby dom functions.
// InitDom registers lobby dom functions .
func (l *Lobby) InitDom(ctx context.Context, wg *sync.WaitGroup) {
	jsFuncs := map[string]js.Func{
		"connect": l.dom.NewJsEventFuncAsync(l.connect, true),
		"leave":   l.dom.NewJsFunc(l.leave),
	}
	l.dom.RegisterFuncs(ctx, wg, "lobby", jsFuncs)
}
func ( l * Lobby ) InitDom ( ctx context . Context , wg * sync . WaitGroup ) { jsFuncs := map [ string ] js . Func { " " : l . dom . NewJsEventFuncAsync ( l . connect , true ) , " " : l . dom . NewJsFunc ( l . leave ) , } l . dom . RegisterFuncs ( ctx , wg , " " , jsFuncs ) }
InitDom registers lobby dom functions.
InitDom registers lobby dom functions .