feat: add healthchecks (#1187)

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

No files matched your search

+1 -1
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 }>(
+4
View File
@@ -260,3 +260,7 @@ export const createQueueChannel = <TItem>(name: string) => {
},
};
};
export const handshakeAsync = async () => {
await getSetClient.hello();
};