using System; namespace ET.Server { /// /// 心跳消息 /// [MessageHandler(SceneType.Gate)] public class C2G_PingHandler : AMRpcHandler { protected override async ETTask Run(Session session, C2G_Ping request, G2C_Ping response) { response.Time = TimeHelper.ClientNow(); await ETTask.CompletedTask; } } }