Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行 demo.js 报错 #29

Open
secretgao opened this issue Nov 21, 2024 · 0 comments
Open

运行 demo.js 报错 #29

secretgao opened this issue Nov 21, 2024 · 0 comments

Comments

@secretgao
Copy link

我本地 用node 启动了一个ws 服务 demo里链接的是我本地ws 启动报错
[2024-11-21T16:02:08.150] [INFO] app - demo start!
[2024-11-21T16:02:08.151] [WARN] app - 没有在本地发现设备登录参数或解析数据失败!如首次登录请忽略!
[2024-11-21T16:02:08.158] [INFO] app - 当前连接接口服务器为: ws://localhost:8080/
[2024-11-21T16:02:08.163] [INFO] app - 连接成功!
[2024-11-21T16:02:08.164] [ERROR] app - ws 错误: 解析msg数据失败: Unexpected token W in JSON at position 0
[2024-11-21T16:02:08.165] [ERROR] app - ws 错误: 解析msg数据失败: Unexpected token S in JSON at position 0

ws 接收到的消息
Received: {"type":"user","cmd":"init","payload":{},"cmdId":"1"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant