mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-10-13 17:02:17 -05:00
13 lines
320 B
TypeScript
13 lines
320 B
TypeScript
import { Socket } from "socket.io";
|
|
import { needSetup } from "../routers/better-auth-router";
|
|
|
|
/**
|
|
* For better-auth, or setup
|
|
* @param socket Socket.io
|
|
*/
|
|
export function betterAuthSocketHandler(socket: Socket): void {
|
|
socket.on("needSetup", async (callback) => {
|
|
callback(await needSetup());
|
|
});
|
|
}
|