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

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

11. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 83%]

...ya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket.connectByUrl("ws://localhost:8989");//建立连接; this.socket.on(Ev...

来源: Laya2.0_文档 发布时间: 20210715

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

...= 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

13. websocket连接出错 [ 82%]

...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

14. socket.sent [ 82%]

...= 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

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

...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

16. js socket 连接不上 [ 79%]

...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

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

...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

18. ts加密md5码封装 [ 73%]

...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

19. 关于socket处理消息的问题 [ 69%]

...问题 我尝试用 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

20. as项目移植layflash问题 [ 67%]

...ByteArray = new ByteArray();             sendData.endian = Endian.LITTLE_ENDIAN;             sendData.writeInt(m_dataSize);             sendData.writeInt(msgData.MainID);             sendData.writeInt(msgData.AssistantID);             sendData.writeInt(msgData.Han...

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