🚀 WebSocket Push Server
✅ 服务器运行正常 - 2025-12-11 16:24:15
⚠️ WebSocket连接问题修复:
如果前端连接失败,请检查:
- Web服务器是否支持WebSocket代理
- 防火墙是否开放了相应端口
- 是否正确配置了WebSocket升级
📡 API接口
🔧 前端测试
📋 推送示例
curl -X POST https://test.ws.luohaowang.top/push \\n\
-H "Content-Type: application/json" \\n\
-d '{\n\
"type": "single",\n\
"user_id": "123",\n\
"message": {\n\
"title": "测试通知",\n\
"content": "这是一条测试消息"\n\
}\n\
}'
🔌 WebSocket连接配置
直接连接(推荐):
ws://test.ws.luohaowang.top:9504/?project=dy&uid=12
如果使用反向代理:
wss://test.ws.luohaowang.top/ws/?project=dy&uid=12
WebSocket Push Server v1.0.0 |
文档