12 lines
196 B
Go
12 lines
196 B
Go
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)
|
|
}
|