cocos2d-x icon indicating copy to clipboard operation
cocos2d-x copied to clipboard

websocket with ssl works on android, does not work on IOS.

Open ngochuan2911 opened this issue 5 years ago • 2 comments
trafficstars

  • cocos2d-x version: 3.17

Steps to Reproduce:

this.ws = new WebSocket(url, [], 'res/cacert.pem');

D/WebSocket.cpp (416): WebSocket thread start, helper instance: 0x6000009739c0 D/WebSocket.cpp (880): scheme: wss, host: wbacay.sellcodegame.com, port: 0, path: /websocket D/WebSocket.cpp (168): NOTICE: Creating Vhost 'default' port -1, 1 protocols, IPv6 on

D/WebSocket.cpp (168): NOTICE: created client ssl context for default

D/WebSocket.cpp (168): NOTICE: lws_client_connect_2: 0x7fdda3eea420: address wbacay.sellcodegame.com

2020-07-07 14:45:33.592508+0700 Vin-mobile[47282:2411627] [si_destination_compare] send failed: No route to host 2020-07-07 14:45:33.592726+0700 Vin-mobile[47282:2411627] [si_destination_compare] send failed: No route to host 2020-07-07 14:45:33.592879+0700 Vin-mobile[47282:2411627] [si_destination_compare] send failed: No route to host D/WebSocket.cpp (1329): WebSocket (0x7fdda3efd420) Unhandled websocket event: 32 D/WebSocket.cpp (1329): WebSocket (0x7fdda3efd420) Unhandled websocket event: 29 D/WebSocket.cpp (168): NOTICE: Connect failed errno=65

D/WebSocket.cpp (1204): WebSocket (0x7fdda3efd420) onConnectionError, state: 0 ... D/WebSocket.cpp (1233): WebSocket (0x7fdda3efd420) onConnectionClosed, state: 2 ... D/WebSocket.cpp (1263): onConnectionClosed, WebSocket (0x7fdda3efd420) is closing by server. D/WebSocket.cpp (1286): WebSocket (0x7fdda3efd420) onConnectionClosed DONE! D/WebSocket.cpp (1329): WebSocket (0x7fdda3efd420) Unhandled websocket event: 50 D/WebSocket.cpp (1329): WebSocket (0x7fdda3efd420) Unhandled websocket event: 45 D/WebSocket.cpp (1329): WebSocket (0x7fdda3efd420) Unhandled websocket event: 33 D/WebSocket.cpp (1233): WebSocket (0x7fdda3efd420) onConnectionClosed, state: 3 ... D/WebSocket.cpp (1204): WebSocket (0x7fdda3efd420) onConnectionError, state: 3 ... D/WebSocket.cpp (546): In the destructor of WebSocket (0x7fdda3efd420) D/WebSocket.cpp (566): before join ws thread D/WebSocket.cpp (426): WebSocket thread exit, helper instance: 0x6000009739c0 D/WebSocket.cpp (568): after join ws thread

ngochuan2911 avatar Jul 07 '20 07:07 ngochuan2911

i got same issue , has any resolution ?

loberHu avatar Oct 13 '21 06:10 loberHu

@loberHu @ngochuan2911 Hi! did you find a solution?

AlexandreK38 avatar Apr 04 '22 18:04 AlexandreK38