webSocket 链接服务器直接关闭cocosd-x3.16

D/WebSocket.cpp (416): WebSocket thread start, helper instance: 0x6080000c3ba0
onSubThreadStarted ::: == >> 911
D/WebSocket.cpp (167): NOTICE: Initial logging level 911

D/WebSocket.cpp (167): NOTICE: Libwebsockets version: 2.1.0 james@James-Chen.local-v3.4-139-gbdcf7f8

D/WebSocket.cpp (167): NOTICE: IPV6 compiled in and enabled

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 4864 fds

D/WebSocket.cpp (167): NOTICE: mem: platform fd map: 38912 bytes

D/WebSocket.cpp (167): NOTICE: Compiled with OpenSSL support

D/WebSocket.cpp (167): NOTICE: mem: per-conn: 512 bytes + protocol rx buf

D/WebSocket.cpp (874): scheme: wss, host: haaaa.com, port: 0, path:
D/WebSocket.cpp (838): WARNING: CA Root file isn’t set. SSL connection will not peer server certificate
D/WebSocket.cpp (167): NOTICE: Creating Vhost ‘default’ port -1, 2 protocols, IPv6 on

D/WebSocket.cpp (167): NOTICE: lws_protocol_init

D/WebSocket.cpp (1323): WebSocket (0x613000159180) Unhandled websocket event: 32
D/WebSocket.cpp (1323): WebSocket (0x613000159180) Unhandled websocket event: 29
D/WebSocket.cpp (167): ERR: SSL connect error 337252596: error:141A10F4:SSL routines:ossl_statem_client_read_transition:unexpected message

D/WebSocket.cpp (1198): WebSocket (0x613000159180) onConnectionError, state: 0 …
D/WebSocket.cpp (1227): WebSocket (0x613000159180) onConnectionClosed, state: 2 …
D/WebSocket.cpp (1257): onConnectionClosed, WebSocket (0x613000159180) is closing by server.
D/WebSocket.cpp (1280): WebSocket (0x613000159180) onConnectionClosed DONE!
D/WebSocket.cpp (1323): WebSocket (0x613000159180) Unhandled websocket event: 45
D/WebSocket.cpp (1323): WebSocket (0x613000159180) Unhandled websocket event: 33
D/WebSocket.cpp (1227): WebSocket (0x613000159180) onConnectionClosed, state: 3 …
Error was fired, error code: 1
onClose: websocket instance (0x613000159180) closed.
D/WebSocket.cpp (546): In the destructor of WebSocket (0x613000159180)
WebSocketTest ref: 3

证书文件未设置,SSL 链接不会被对端服务器认证

t添加证书后还是报错 :D/WebSocket.cpp (167): ERR: SSL connect error 337252596: error:141A10F4:SSL routines:ossl_statem_client_read_transition:unexpected message