protected override void BuildHearbeatPackage(RequestPackage package, GameSession session) { SocketGameResponse response = new SocketGameResponse(); DataStruct dataStruct = new DataStruct(); dataStruct.WriteAction(response, package.ActionId, 0, "", package.MsgId); var data = response.ReadByte(); session.SendAsync(data, 0, data.Length); base.BuildHearbeatPackage(package, session); }