feat: 更新 WebSocket 路由,添加缺失的路由配置并调整测试用例

This commit is contained in:
2025-12-21 04:42:36 +08:00
parent 11ac3f9de9
commit 8007315c66
3 changed files with 12 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ const testRouter = () => {
// const ws = new WebSocket('ws://118.196.32.29:3005/api/router');
// const ws = new WebSocket('wss://kevisual.cn/api/router');
const ws = new WebSocket('ws://localhost:51015/api/ws/demo?id=12345');
// const ws = new WebSocket('ws://localhost:51015/api/ws/demo?id=12345');
const ws = new WebSocket('ws://localhost:51015/api/router?id=12345');
console.log('Connecting to WebSocket server...');
ws.on('open', () => {
console.log('WebSocket connection opened');