luvFriday
Results
2
issues of
luvFriday
pomelo 的protobuf 好像只能对 webServer 和 gameServer 主动发送的消息进行压缩,不能对某个发送的返回消息进行压缩。 如 lordOfPomelo 的示例中:webServer 请求 ‘area.playerHandler.enterScene’ 的时候,可以在serverProtos.json 中对请求的参数 Entities 进行定义,以便protobuf 能够使用;但是不能对 ‘area.playerHandler.enterScene’ 中的回调函数里面返回的数据进行 protobuf 压缩。 请问我的理解是否正确?
在 serverProtos.json 中配置发送给客户端的消息,如果是布尔值时: 如: "optional uInt32 index": 1, "optional bool unlock": 2, "optional bool received": 3 客户端只能正确收到 index, unlock 和 received 都是 undefined。 是 pomelo 的 protobuf 不支持发送布尔值消息吗?还是我的配置问题?请各路大神指教!