web版本能连上,Native 版不行
这是咋啦?
D/WebSocket.cpp (567): after join ws thread
正在连接到服务器: wss://test.xx.xxxx.xx/game/
D/WebSocket.cpp (415): WebSocket thread start, helper instance: 08451F10
D/WebSocket.cpp (167): NOTICE: Initial logging level 911
D/WebSocket.cpp (167): NOTICE: Libwebsockets version: 2.1.0 desktop-8c9aqu5\cocosengine@DESKTOP-8C9AQU5-v3.4-141-gcddc296
D/WebSocket.cpp (167): NOTICE: IPV6 not compiled in
D/WebSocket.cpp (167): NOTICE: libev support not compiled in
D/WebSocket.cpp (167): NOTICE: libuv support not compiled in
D/WebSocket.cpp (167): NOTICE: Threads: 1 each 30000 fds
D/WebSocket.cpp (167): NOTICE: Compiled with OpenSSL support
D/WebSocket.cpp (167): NOTICE: mem: per-conn: 392 bytes + protocol rx buf
D/WebSocket.cpp (873): scheme: wss, host: test.dz.01cs.cc, port: 0, path: /fk/game/
D/WebSocket.cpp (837): WARNING: CA Root file isn’t set. SSL connection will not peer server certificate
D/WebSocket.cpp (167): NOTICE: Creating Vhost ‘default’ port -1, 1 protocols, IPv6 off
D/WebSocket.cpp (167): NOTICE: lws_protocol_init
D/WebSocket.cpp (1322): WebSocket (087B8850) Unhandled websocket event: 32
D/WebSocket.cpp (1322): WebSocket (087B8850) Unhandled websocket event: 29
D/WebSocket.cpp (167): ERR: server’s cert didn’t look good, X509_V_ERR = 20: error:00000014:lib(0):func(0):reason(20)
D/WebSocket.cpp (1197): WebSocket (087B8850) onConnectionError, state: 0 …
D/WebSocket.cpp (1226): WebSocket (087B8850) onConnectionClosed, state: 2 …
D/WebSocket.cpp (1256): onConnectionClosed, WebSocket (087B8850) is closing by server.
D/WebSocket.cpp (1279): WebSocket (087B8850) onConnectionClosed DONE!
D/WebSocket.cpp (1322): WebSocket (087B8850) Unhandled websocket event: 45
D/WebSocket.cpp (1322): WebSocket (087B8850) Unhandled websocket event: 33
D/WebSocket.cpp (1226): WebSocket (087B8850) onConnectionClosed, state: 3 …
onerror
D/WebSocket.cpp (744): closeAsync: WebSocket (087B8850) is closing…
D/WebSocket.cpp (748): closeAsync: WebSocket (087B8850) was closed, no need to close it again!