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

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

41. 分享:LayaNative端使用Socket.io注意事项! [ 79%]

... 打开LayaAirSocketIoDemo文件夹里找到SocketNetMgr.as文件,修改connect方法里的内容:   var opts:Object = { 'reconnection':false, 'force new connection': true, 'transports':['websocket', 'polling'] } 改为: var opts:Object = { 'reconnection':false, 'force new connection': true, ...

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

42. native 1.0.2 连不上wss [ 79%]

...et("wss://login.huanxi.twbuyu.com:27777"); ws.onopen = function() { alert("connect success~"); ws.send('tom'); alert("send to server msg: tom"); }; ws.onmessage = function(e) { alert("accpet msg: " + e.data); }; ws.onerror = function(e) { alert("error: " + e); console.log(e) }; </script> </...

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

43. reflection error: can not find method signature 反射错误 [ 79%]

...5-16 23:46:23.927065+0800 Digital Warrior[557:53057] download error: can't connect the server:https://10.10.31.23:8001/index.js 2020-05-16 23:46:23.927353+0800 Digital Warrior[557:53057] Downloaded https://10.10.31.23:8001/index.js@ s=0 l=0 2020-05-16 23:46:23.946201+0800 Digital Warrior[557:53097]...

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

44. 分享:常见 IDE 错误提示解决方案 [ 78%]

... 报错类型1: 报错类型2:   报错类型3: IDE错误:Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ETIMEDOUT 127.0.0.1:9222).------可以参考开发者的解决方式(http://ask.layabox.com/question/4392)   以上报错...

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

45. native2.1 安卓退到后台时,概率闪退 [ 78%]

...ocketImpl.startHandshake(OpenSSLSocketImpl.java:412) 3 com.android.okhttp.Connection.upgradeToTls(Connection.java:146) 4 com.android.okhttp.Connection.connect(Connection.java:107) 5 com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294) 6 com.android.okhttp.internal.http.HttpEn...

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

46. socket断开后怎么重连 [ 77%]

...相关的链接 提交 1 个回复 Laya_XS 赞同来自: 在重新调用下connect就行了, 2017-09-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 18336093936 相关问题 socket监听 socket 在native2.0上连接错误,附DEMO 微...

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

47. Scoket中的timeout [ 77%]

...要回复问题请先登录 发起人 jason18380447822 相关问题 Cannot connect to runtime process, timeout after 10000 ms 自动关闭 Cannot connect to runtime process, timeout after 10000 ms 自动关闭 [LayaNative2.0] Laya.HttpRequest 怎么设置 timeout 问题状态 最新活动: 2017-06-0...

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

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

...served1 = 1, reserved2 = 1, reserved3 = 0 如题; 报错内容 WebSocket connection to 'ws://127.0.0.1:9000/' failed: One or more reserved bits are on: reserved1 = 1, reserved2 = 1, reserved3 = 0   百度了一个下午都没解决,不知道这里有没有人遇到过这个错误。后端代码...

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

49. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 76%]

...te static var socket:Socket=null; private var list:Array=; public function Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnect...

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

50. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 76%]

... watchify = require("watchify"); const gutil = require("gulp-util"); const connect = require('gulp-connect'); // ------------------------------------实时编译----------------------------- const watchedBrowserify = watchify(browserify({ debug: true, entries: ['src/Main.ts'], cache: {}, packageCach...

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