this.pemUrl = cc.url.raw(“resources/ssl/eod.pem”);
if(cc.loader.md5Pipe) {
this.pemUrl = cc.loader.md5Pipe.transformURL(this.pemUrl)
}
this._sock = new WebSocket(this.url, [], this.pemUrl);
H5可以, 模拟器不行。
this.pemUrl = cc.url.raw(“resources/ssl/eod.pem”);
if(cc.loader.md5Pipe) {
this.pemUrl = cc.loader.md5Pipe.transformURL(this.pemUrl)
}
this._sock = new WebSocket(this.url, [], this.pemUrl);
H5可以, 模拟器不行。