chore: initial commit

This commit is contained in:
2026-10-22 17:07:08 +08:00
commit 0acef64f48
200 changed files with 35546 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import type {Socket} from "socket.io-client";
import {ensure_forward} from "../../bot/forward/manager.ts";
export async function handler(socket: Socket, data: unknown, callback: unknown) {
if (typeof callback !== "function") return;
const response = await ensure_forward(socket, data);
try { callback(response); } catch { /* Main may have disconnected while the request was pending. */ }
}