美文网首页
pomelo学习

pomelo学习

作者: 隐性中二病患者 | 来源:发表于2018-03-22 18:13 被阅读0次

1,gate服务器 connector服务器 game服务器
connector服务器和gate服务器间通过rpc来通信
connector
1.负责维护用户sesssion
2.负责用户的连接请求 维护和客户端的连接 消息推送。
3.负责接收connector服务器转发的用户请求 并进行响应。

客户端连接api
pomelo.init({host,port}, function(){

})

客户端请求api
pomelo.request(url, msg, callback);

url: 请求地址, 服务器类型.服务器Handler文件名.方法

2 关于session 由于有rpc调用 不在一个进程里 所以就有frontSession 和 backendSession

相关文章

网友评论

      本文标题:pomelo学习

      本文链接:https://www.haomeiwen.com/subject/dkmaqftx.html