feat(test): 添加WebSocket连接测试脚本

- 新增taosTest.py文件实现TDengine数据库连接测试
- 实现创建子表、插入测试数据和查询功能
- 集成taosws库进行WebSocket数据库操作
- 更新test_websocket.py中的连接地址配置
- 添加时间戳基准和批量数据插入功能
- 实现稳定表和子表的查询对比测试
This commit is contained in:
2026-03-13 17:24:34 +08:00
parent 9c6f5c3b63
commit 25008d7845
2 changed files with 101 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import ssl
import websocket
URL = "ws://192.168.1.41:9516/ws/" # 注意走 443不要再连 8080 了
URL = "wss://192.168.1.87/ws/" # 注意走 443不要再连 8080 了
# 如果你的 WS 路径是 /ws/,就写成上面这样;若是别的路径自己改
def on_message(ws, msg): print("收到:", msg)