smallwhite
smallwhite
``` let handler module.exports = function(app) { if(handler)return handler; return handler = new Handler(app); }; ``` 你自己改成这样不就完了.
用master进程监控就好了。 在master进程内注册组件搞这些比较合适
add more processes
what does `We are facing table freeze issue sometimes.` mean? pomelo just only a framework .
PRC? 服务器之间的RPC?是超时吗?
you need modify `servers.json` -> `clientHost` as external network IP.
The simplest Token is `token = base64({uid:xx})`,the `Gate` generate `token`. Then in the connector `entry` interface, `session.bind(decode(token).uid)`. if `Player` reconnect, just pass token to connector `entry`. The `entry` only accept...
clientProto 存的是 请求, 放 `area.playerHandler.enterScene` 的请求protobuf结构 serverProto 存的是返回, 放 `area.playerHandler.enterScene` 的返回 protobuf结构
pinus https://github.com/node-pinus/pinus
可以试试入坑 pinus