websocket 安卓平台报错

版本:2.2.2
安卓9
使用的是ws

D/WebSocket.cpp: WebSocket thread start, helper instance: 0x743bfbcbc0
D/WebSocket.cpp: scheme: ws, host: 192.168.0.102, port: 2000, path: ?UserID=626
NOTICE: Creating Vhost ‘default’ port -1, 1 protocols, IPv6 on
D/WebSocket.cpp: NOTICE: created client ssl context for default
NOTICE: lws_client_connect_2: 0x743d93e980: address 192.168.0.102
NOTICE: uplevelling AF_INET to AF_INET6
D/WebSocket.cpp: WebSocket (0x743c013180) Unhandled websocket event: 32
WebSocket (0x743c013180) Unhandled websocket event: 29
V/AudioEngineImpl: play2d, _audioPlayers.size=1
V/PcmAudioPlayer: PcmAudioPlayer constructor: 0x743c7cfd60
V/PcmAudioPlayer: PcmAudioPlayer (0x743c7cfd60) play, url: @assets/res/raw-assets/ae/aeb4bad4-d022-4ab0-b9d1-b94c3a512d58.88769.mp3
D/WebSocket.cpp: NOTICE: lws_client_connect_2: 0x743d93e980: address 192.168.0.102
D/WebSocket.cpp: NOTICE: uplevelling AF_INET to AF_INET6
D/WebSocket.cpp: WebSocket (0x743c013180) Unhandled websocket event: 24
D/WebSocket.cpp: WARN: lws_client_handshake: got bad HTTP response ‘400 Bad Request’

哪位大佬帮忙解答下。

已经解决了 后面少加了个“/”,在浏览器和模拟器上可以,在android上有问题。

应该是没问题的,建议你用 example-case 上的 network 场景测试一下。