Creator version?(版本号)
cocos creator v2.01
Affected platform?(受影响的平台)
Android
How to reproduce?(如何重现)
只要使用wss协议来连接的Android包每次都会出现,但是如果改为用ws协议来连的Android包是没有问题的。
PS:服务器是支持wss及ws的,打微信小程序包以及Web包是都是没有问题的。
JavaScript output or error produced?(报错信息和调用栈)
没有特别的报错,就是连接websocket的时候直接报onerror的连接错误
Demo project?(demo 项目)
cc.Class({
extends: cc.Component,
properties: {
label: {
default: null,
type: cc.Label
},
text: 'Hello, World!',
websocket:null,
wsServer:null,
},
onLoad: function () {
this.label.string = this.text;
var aa = 'aa.bb.com:7066/?token=NjNlZXFneTNqQ3JuUThtZTR5T3ZSVFZqRFpBQ2x1L0ZaOGd4cmpoM3hmNSggfdsgdfgfd';
this.init(aa);
},
init:functio