this.ws = new WebSocket(“wss://echo.websocket.org”);
this.ws.onopen = function () {
cc.log("测试1111----- onopen");
}.bind(this);
this.ws.onclose = function (event) {
cc.log("测试1111----- onclose");
};
this.ws.onerror = function (event) {
cc.log("测试1111----- onerror");
};
,报如下错误CA Root file isn’t set. SSL connection will not peer server certificate
使用证书文件也不行
this.ws = new WebSocket(“wss://echo.websocket.org”, null, cc.url.raw(‘resources/cacert.cer’));
请问如何解决?能否通过修改引擎,不要在应用端传证书。