[]Native1.0.1 无法连接wss
如题, Naitve无法连接wss
示例代码如下:
const url = "wss://xxx.com:8888";
this.socket = new Laya.Socket();
this.socket.endian = Laya.Byte.BIG_ENDIAN;
this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess);
this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect);
this.socket.on(Laya.Event.ERROR, this, this.onConnectFail);
this.socket.on(Laya.Event.MESSAGE, this, this.onReceive);
this.socket.connectByUrl(url);
示例代码如下:
const url = "wss://xxx.com:8888";
this.socket = new Laya.Socket();
this.socket.endian = Laya.Byte.BIG_ENDIAN;
this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess);
this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect);
this.socket.on(Laya.Event.ERROR, this, this.onConnectFail);
this.socket.on(Laya.Event.MESSAGE, this, this.onReceive);
this.socket.connectByUrl(url);
没有找到相关结果
已邀请:
3 个回复
Aar0n
赞同来自:
郭兆奎
赞同来自:
Aar0n
赞同来自: