• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 14 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0027 秒)

1. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 100%]

...= new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connect("localhost", 9244); // this.socket.connectByUrl("ws://localhost:9241"...

来源: Laya_社区 发布时间: 20171129

2. websocket连接, ws 时没问题,改成 wss 没反应 [ 97%]

...!     this.byte = new Laya.Byte();     this.byte.endian = Laya.Byte.LITTLE_ENDIAN;  //这里我们采用小端     this.socket = new Laya.Socket();     this.socket.endian = Laya.Byte.LITTLE_ENDIAN;  //这里我们采用小端     //建立连接     this.socket.connectByUrl("wss://192...

来源: Laya_社区 发布时间: 20180510

3. socket与node服务端连不上?按照官方案例 [ 95%]

...= new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://45.78.**.**:3000"); this.socket.on(Laya.Event.OPEN, this, ...

来源: Laya_社区 发布时间: 20180125

4. websocket连接出错 [ 94%]

...10.1.103:8081'); this.byte = new Laya.Byte(); this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://10.10.1.103:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.E...

来源: Laya_社区 发布时间: 20181107

5. socket.sent [ 93%]

...= new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, th...

来源: Laya_社区 发布时间: 20180210

6. 服务器websocket c++发送二进制类型包,客户端没有任何事件响应 [ 93%]

...g:80"); socket.connectByUrl('ws://127.0.0.1:88');// //output.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; output = socket.output; //socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; socket.on(Laya.Event.OPEN, this, onSocketOpen); socket.on(Laya.Event.CLOSE, this, onSocket...

来源: Laya_社区 发布时间: 20170822

7. js socket 连接不上 [ 91%]

...10.1.103:8081'); this.byte = new Laya.Byte(); this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://10.10.1.103:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.E...

来源: Laya_社区 发布时间: 20180509

8. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 83%]

...mple() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket.on(Event.OPEN,this,openHandler); this.socket.on(Event.MESSAGE,this,rece...

来源: Laya_社区 发布时间: 20180202

9. ts加密md5码封装 [ 83%]

...tr) : paddingStr.concat(arr); return isArray ? result : result.join(""); } little_endian(charCode: number) { return this.split(this.padding(charCode.toString(16), 8, "0", false), 2).reverse().join(""); } range(...args: number[]) { const start: number = args.length === 1 ? 0 : args[0]; const end: num...

来源: Laya_社区 发布时间: 20190321

10. 关于socket处理消息的问题 [ 79%]

...问题 我尝试用 var byte:Byte = new Byte(); byte.endian = Laya.Socket.LITTLE_ENDIAN; byte.writeUint32(12); byte.writeUint16(0); byte.writeUint16(msg.opcode()); msg.encode(byte); this._socket.send(byte.__getBuffer().slice(0, byte.length); //this._socket.send(byte.__getBuffer()); -->>这两...

来源: Laya_社区 发布时间: 20170905