feat: 更新 WebSocket Keep-Alive 客户端,添加 ws 作为外部依赖,修正导入路径

This commit is contained in:
2026-01-30 21:23:40 +08:00
parent d7a4bcf58f
commit 28484baab3
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
// WebSocket Keep-Alive Client with node+ws
import { createKeepAlive } from "../src/workspace/keep-live.ts";
// import { createKeepAlive } from "../src/keep.ts";
import { createKeepAlive } from "../dist/keep.js";
const WS_URL = "wss://cnb-l6o-1jg7aoevl-001.cnb.space/stable-3c0b449c6e6e37b44a8a7938c0d8a3049926a64c?reconnectionToken=a6517530-9911-406b-a65f-0d9d4b3f0d6f&reconnection=false&skipWebSocketFrames=false";
const COOKIE = "orange:workspace:cookie-session:cnb-l6o-1jg7aoevl-001=1ba3d696-1805-4c6b-b109-222738be570f";