func (g *Game) sendChat(event js.Value) {
	f, err := ui.NewForm(g.dom.QuerySelectorAll, event)
	if err != nil {
		g.log.Error(err.Error())
		return
	}
	info := f.Params.Get("chat")
	f.Reset()
	m := message.Message{
		Type: message.GameChat,
		Info: info,
	}
	g.Socket.Send(m)
}
// sendChat sends a chat message from the form of the event.
sendChat sends a chat message from the form of the event.
// sendChat sends a chat message from the form of the event .
func (g *Game) sendChat(event js.Value) {
	f, err := ui.NewForm(g.dom.QuerySelectorAll, event)
	if err != nil {
		g.log.Error(err.Error())
		return
	}
	info := f.Params.Get("chat")
	f.Reset()
	m := message.Message{
		Type: message.GameChat,
		Info: info,
	}
	g.Socket.Send(m)
}
func ( g * Game ) sendChat ( event js . Value ) { f , err := ui . NewForm ( g . dom . QuerySelectorAll , event ) if err != nil { g . log . Error ( err . Error ( ) ) return } info := f . Params . Get ( " " ) f . Reset ( ) m := message . Message { Type : message . GameChat , Info : info , } g . Socket . Send ( m ) }
sendChat sends a chat message from the form of the event.
sendChat sends a chat message from the form of the event .