package game import ( "net" "server/core" "server/packet" ) // Ping is used as a heartbeat and latency check. func Ping(data []byte, address *net.UDPAddr, server *core.Server) error { server.Send(packet.Ping, data, address) if Clients.Contains(address) { Clients.Get(address).KeepAlive() } return nil }