feat: 更新 WebSocket 路由,添加缺失的路由配置并调整测试用例
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user