文章目录
消息处理组件server
具体文件是:pomelo/lib/common/components/server.js
组件加载后写入app中 app.components.__server__
对外两个处理接口:
/**
* Proxy server handle
*/
pro.handle = function(msg, session, cb) {
this.server.handle(msg, session, cb);
};
/**
* Proxy server global handle
*/
Component.prototype.globalHandle = function(msg, session, cb) {
this.server.globalHandle(msg, session, cb