大约有 69 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0031 秒)
Laya_社区(43) Laya2.0_文档(9) Laya3.0_文档(7) laya_api(3) Laya2.0_api(3) Laya3.0_api(2) Laya2.0_示例(1) Laya_示例(1)
...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
...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
...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
...(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
...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
...LOGIN_GAME = 0x00000001; JOIN_GAME = 0x00000002; EXIT_GAME = 0x00000003; } message LoginGame { required string account = 1; // 账号 required string passwd = 2; // 密码 }第一次使用protobuf与服务端通讯,有点疑惑。以往使用json格式的数据通讯时,可以将协议名称写...
来源: Laya_社区 发布时间: 20170217
...-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
...码 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
...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
...端; 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