大约有 36 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)
Laya_社区(27) Laya2.0_文档(3) Laya_示例(1) laya_api(1) Laya3.0_api(1) Laya2.0_示例(1) Laya2.0_api(1) Laya3.0_文档(1)
...无法连接wss 示例代码如下: const url = "wss://xxx.com:8888"; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERROR, t...
来源: Laya_社区 发布时间: 20180910
websocket连接, ws 时没问题,改成 wss 没反应 我完全按官网文档的示例,连接 ws 时没任何问题,但是改用 wss 时没任何反应。 请问是哪里的问题?应该怎么改?或者哪里有连接 wss 的代码片段?谢谢! this.byte = new Laya.Byte(); ...
来源: Laya_社区 发布时间: 20180510
socket与node服务端连不上?按照官方案例 //初始化引擎 Laya.init(600,400,Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_E...
来源: Laya_社区 发布时间: 20180125
websocket无法连接 this.socket = new Laya.Socket(); //这里我们采用大端 this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.connectByUrl("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive)...
来源: Laya_社区 发布时间: 20180312
js socket 连接不上 按照官方文档,链接socket 老是链接不上,然而自己写的能链接。 server.js var express = require('express'); var app = express(); var server = require('http').createServer(app); var io = require('socket.io').listen(server); server.listen(8888); console.lo...
来源: Laya_社区 发布时间: 20180509
...ttp连接2.1 Laya.HttpRequest2.2 GET2.3 POST2.4 扩展HttpRequest三、 WebSocket连接3.1 Laya.Sokcet3.2 Laya.Byte 二进制读写四、ProtocolBuffer使用4.1 Message 定义4.2 项目中添加protobuf 类库4.3 加载协议文件4.4 Message 方法4.5 代码示例网络通信 一、概述 在我们...
来源: Laya3.0_文档 发布时间: 20230719
Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? 问题:Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不...
来源: Laya_社区 发布时间: 20170724
服务器websocket c++发送二进制类型包,客户端没有任何事件响应 握手OK,客户端发文本,二进制数据客户端能收到,但服务器端发文本包OK,二进制包就无任何事件响应,大神们有啥见解没?客户端按laya官方示例写的 2017-08-22 添...
来源: Laya_社区 发布时间: 20170822
Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? 使用二进制传输 后端收到的竟然是 [object ArrayBuffer] 纯文本,其他浏览器测试正常. 2017-11-29 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20171129
socket报错,on: reserved1 = 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