feat: 添加工作空间保持存活功能,更新相关依赖和配置
This commit is contained in:
13
src/workspace/keep-worker.ts
Normal file
13
src/workspace/keep-worker.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createKeepAlive } from '@kevisual/cnb/keep';
|
||||
|
||||
const wsUrl = process.argv[2];
|
||||
const cookie = process.argv[3];
|
||||
|
||||
createKeepAlive({
|
||||
wsUrl,
|
||||
cookie,
|
||||
onConnect: () => console.log('已连接'),
|
||||
debug: true
|
||||
});
|
||||
|
||||
process.on('SIGINT', () => process.exit(0));
|
||||
Reference in New Issue
Block a user