View Code? Open in Web Editor
NEW
typescript编写的分布式游戏服务器框架(a distributed game server framework coded by typescript)
Home Page: https://www.mydog.wiki
License: MIT License
JavaScript 17.79%
TypeScript 73.40%
C# 8.81%
mydog's Introduction
- 👋 Hi, I’m @ahuangege
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
mydog's People
mydog's Issues
/**
* Callback
*/
callBack(client, cmd, reqId) {
let self = this;
return function (msg) {
if (msg === undefined) {
msg = {
"reqId":reqId
};
} else {
msg.reqId = reqId
}
let buf = self.app.protoEncode(cmd, msg);
client.send(buf);
};
}
1、pomelo有个cli工具,pitaya也有,可以模拟客户端向服务器发送消息,mydog未来最好也有这个工具,非常方便服务器调试检查消息。
2、热更新及教程