func (l *Lobby) leave() {
	l.Socket.Close()
	l.game.Leave()
	tbodyElement := l.dom.QuerySelector(".game-infos>tbody")
	tbodyElement.Set("innerHTML", "")
}
// leave closes the socket and leaves the game.
leave closes the socket and leaves the game.
// leave closes the socket and leaves the game .
func (l *Lobby) leave() {
	l.Socket.Close()
	l.game.Leave()
	tbodyElement := l.dom.QuerySelector(".game-infos>tbody")
	tbodyElement.Set("innerHTML", "")
}
func ( l * Lobby ) leave ( ) { l . Socket . Close ( ) l . game . Leave ( ) tbodyElement := l . dom . QuerySelector ( " " ) tbodyElement . Set ( " " , " " ) }
leave closes the socket and leaves the game.
leave closes the socket and leaves the game .