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

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

41. websocket连接出错 [ 64%]

...a.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.Event.ERROR, this, errorHandler); //连接出错 function openHandler(even...

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

42. 如何与服务端建立连接 [ 63%]

...st:8989");this.socket.on(Event.OPEN,this,openHandler);this.socket.on(Event.MESSAGE,this,receiveHandler);this.socket.on(Event.CLOSE,this,closeHandler);this.socket.on(Event.ERROR,this,errorHandler); 回到方法 成功失败。。 private function openHandler(event:Object = null):void{//正确建立...

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

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

...n); socket.on(Laya.Event.CLOSE, this, onSocketClose); socket.on(Laya.Event.MESSAGE, this, onMessageReveived); socket.on(Laya.Event.ERROR, this, onConnectError); 2017-08-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Zzz18815519 相关...

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

44. as3中如何定义html中的id参数 [ 62%]

...(faces):void { trace("faces: "+ faces); }, error:function (code, message):void { trace('Error: ' + message); } }); Laya_Aaron • 2018-06-25 21:01 之后使用需要用js调 需要用__JS__("里面放js代码"); 之前window是把myvideo 声明成全局变量,这样js就...

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

45. js socket 连接不上 [ 62%]

...a.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.Event.ERROR, this, errorHandler); //连接出错 function openHandler(even...

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

46. websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? [ 61%]

...LOGIN_GAME = 0x00000001; JOIN_GAME = 0x00000002; EXIT_GAME = 0x00000003; } message LoginGame { required string account = 1; // 账号 required string passwd = 2; // 密码 }第一次使用protobuf与服务端通讯,有点疑惑。以往使用json格式的数据通讯时,可以将协议名称写...

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

47. 调试按钮,IDE报错 [ 59%]

...-core\out\src\chrome\consoleHelper.js:138:22)     at Object.formatConsoleMessage (c:\Program Files (x86)\laya\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\consoleHelper.js:39:48)     at ChromeDebugAdapter.onConsoleAPICalled (c:\Program Files (x86)\laya...

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

48. 网络和格式 -- ProtocolBuffer as3 [ 58%]

...码   2017-03-06 0 0 分享 微博 QZONE 微信 king 赞同来自: Event.MESSAGE 怎么读到buffer 2017-03-06 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 此时的buffer是标准的arraybuffer数据。 2017-03-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

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

...ket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private openHandler(event: any = null): void { //正确建立连接...

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

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

...端; this.socket.on(Event.OPEN,this,openHandler); this.socket.on(Event.MESSAGE,this,receiveHandler); this.socket.on(Event.CLOSE,this,closeHandler); this.socket.on(Event.ERROR,this,errorHandler); } public function connect():void { if(!this.socket.connected){ this.socket.connectByUrl("ws://127.0.0.1...

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