12 lines
417 B
TypeScript
12 lines
417 B
TypeScript
import { PacketHeaderStruct } from "../types/header";
|
|
import { CommandId, ResultCodes } from "../../../lib/constants/aimedb";
|
|
import type { AimeDBHandlerFn } from "../types/handlers";
|
|
|
|
export const ServiceHealthCheckHandler: AimeDBHandlerFn = (header, _) => {
|
|
header.result = ResultCodes.SUCCESS;
|
|
header.commandId = CommandId.SERVICE_HEALTH_RESPONSE;
|
|
header.length = PacketHeaderStruct.baseSize;
|
|
|
|
return null;
|
|
};
|