大约有 12 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0026 秒)
...d endian input output Methods cleanSocket close connect connectByUrl event flush hasListener off offAll offAllCaller on once send Constructors constructor new Socket(host?: string | null, port?: number, byteClass?: {}, protocols?: any[] | null, isSecure?: boolean): Socket Defined in laya/net/Socket....
来源: Laya3.0_api 发布时间: 20231115
...cket.output.writeBytes(headByte); _socket.output.writeBytes(data); _socket.flush(); }这个send是自己封装的一个方法,现在在连续发送数据包时会出现一些包无法写出去的情况,用winShark是抓不到客户端发出的包的。能否解答下疑惑的,谢谢 2017-07-10...
来源: Laya_社区 发布时间: 20170710
...ent(type:String, data:* = null):Boolean 派发事件。 EventDispatcher flush():void 发送缓冲区中的数据到服务器。 Socket hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):B...
来源: laya_api 发布时间: 20170929
...ent(type:String, data:* = null):Boolean 派发事件。 EventDispatcher flush():void 发送缓冲区中的数据到服务器。 Socket hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):B...
来源: Laya2.0_api 发布时间: 20190513
...< message.length; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if ...
来源: Laya_示例 发布时间: 20250223
... console.log("send end"); this.socket.flush(); 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 moketao 赞同来自: 这是要多节省带宽资源才一个字节一...
来源: Laya_社区 发布时间: 20170628
... socket.writeBytes(sendData); socket.flush(); } } 附件 : --> 2017-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来...
来源: Laya_社区 发布时间: 20170318
...< message.length; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if ...
来源: Laya2.0_示例 发布时间: 20250223
...ut.writeArrayBuffer(bytes["_byteView_"]); this.socket.flush();com.tengxun.utils.ByteArray } 2018-03-28 0 0 分享 微博 QZONE 微信 darren 赞同来自: 但是Protobuf还是有问题: 服务端报错 proto: bad wiretype for field message.Login.Password: got wir...
来源: Laya_社区 发布时间: 20180328
... (g_Socket._output as ByteArray).writeBytes(bytes); //[IF-SCRIPT] g_Socket.flush(); }参考下这个例子! 2017-04-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 vincent 相关问题 版本不匹配! 全局 tsc (2.2.2) != VS Code ...
来源: Laya_社区 发布时间: 20170405