Files
KianaBH3/GameServer/Server/Packet/Recv/Client/HandlerKeepAliveNotify.cs
2025-06-14 11:15:32 +08:00

14 lines
377 B
C#

using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Recv.Client;
[Opcode(CmdIds.KeepAliveNotify)]
public class HandlerKeepAliveNotify : Handler
{
public override async Task OnHandle(Connection connection, byte[] header, byte[] data)
{
await connection.Player!.OnHeartBeat();
await connection.SendPacket(CmdIds.KeepAliveNotify);
}
}