feat: add healthchecks (#1187)

This commit is contained in:
Manuel
2024-09-28 23:02:28 +02:00
committed by GitHub
parent 8aaa4f5856
commit 08c6303fa6
7 changed files with 161 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
import { createListChannel, createQueueChannel, createSubPubChannel } from "./lib/channel";
export { createCacheChannel, createItemAndIntegrationChannel, createItemChannel } from "./lib/channel";
export { createCacheChannel, createItemAndIntegrationChannel, createItemChannel, handshakeAsync } from "./lib/channel";
export const exampleChannel = createSubPubChannel<{ message: string }>("example");
export const pingChannel = createSubPubChannel<{ url: string; statusCode: number } | { url: string; error: string }>(

View File

@@ -260,3 +260,7 @@ export const createQueueChannel = <TItem>(name: string) => {
},
};
};
export const handshakeAsync = async () => {
await getSetClient.hello();
};