12 lines
196 B
Go
Raw Normal View History

2024-01-15 16:08:26 +00:00
package main
import (
"server/core"
"server/packet"
)
// ping is used as a heartbeat and latency check.
func ping(data []byte, client *core.Client) {
server.Send(packet.PING, data, client)
}