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

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

11. 网络通信 · LayaAir3文档 · LAYABOX [ 68%]

...e.charCodeAt(i)); } // 发送缓冲区中的数据到服务器 this.socket.flush(); } // 连接断开后的事件回调 private onSocketClose(e: any = null): void { console.log("Socket closed"); } // 有数据接收时的事件回调 private onMessageReveived(message: any = null): void { console.log...

来源: Laya3.0_文档 发布时间: 20250104

12. socket大型项目回调 [ 59%]

...his.send(buffer); this.socket.output.writeArrayBuffer(buffer); this.socket.flush(); } private onClose(e:Laya.Event):void { console.error("[Pomelo] connect close:",e); this.emit(Pomelo.EVENT_CLOSE,e); } private onIOError(e:Laya.Event):void{ this.emit(Pomelo.EVENT_IO_ERROR, e); console.error('socket e...

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