pomelo-cn
pomelo-cn copied to clipboard
The Chinese issues for pomelo.
Java 客户端连pomelo服务端,出现Connection closed by remote peer,而web端没有问题,为啥啊。。
[2014-02-20 10:40:31.326] [ERROR] process - [31m137: [master] [1057] [39muncaughtException in server master-server-1(1057) {},TypeError: Cannot read property 'info' of undefined at removeConnection (/var/www/game/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/masterAgent.js:577:23) at Socket. (/var/www/game/game-server/node_modules/pomelo/node_modules/pomelo-admin/lib/masterAgent.js:234:9) at Socket.EventEmitter.emit [as $emit](events.js:95:17) at...
我的的gate监听端口 3388 ,在用flex做browser app里,会请求 http://xxx.xxx.xxx.xxx:3388/crossdomain.xml。 返回的内容是Welcome to socket.io. 我现在想改变这种行为,返回真实的crossdomian内容,该怎么做呢
自己新建了一个服务器,app中也设置了app.enabled('systemMonitor'); 然后下载了pomelo-admin-web; 按顺序启动后,通过http://localhost:7001打开网页,但提示unknown moduleId:scripts; 服务器也输出unknown module: "scripts"; pomelo 版本0.8.7
公司让我调研 Pomelo 这个项目,是否可以使用这个项目是否能用于生产。我看了一个多星期,尝试了 demo,总体来说,这个项目还是很好的。但还有一些忧虑: 1、这个项目是网易开源出来的,但网易对这个项目的支持如何?是公司有全职员工支持,还是个人爱好? 2、如果有团队,团队构成如何,貌似没有相关资料介绍过这个。 3、目前还没有 iOS、Android 原生接口,这些需要多久能出来? 4、项目的支持除了来这里提问,是否还有其他渠道? 5、目前有没有成熟的线上产品基于 Pomelo 做的? 另外,还有一点担心就是:国内 JS 都是前端技术人员在使用,后端程序员懂 JS 的人很少。而前段程序员在写后端程序的话,很多意识、思路,经验都还需要积累。不知道网易在做这个项目的时候,有没有这方面的考虑。
1 在后端服务器中,我想获取localSession,代码如下 this.app.get('localSessionService').getByUid(args.frontendId,args.uid,function(err,localSessions){ console.log('err = '+err); console.log(localSessions); }); 我确认参数frontendId及sessionId真实有效,为何回调函数中err 及 localSessions 都是undefined呢? 即使没有匹配的结果,返回的 err 应该有值或者是null才对呀?另外返回的localSessions是个数组吗? 2 RPC方法的第一个参数必须是session,这个session可否是localSession ? 我的项目有这样一个需求,在后端服务器的remote方法中,需要RPC远程调用其他后端服务器的方法,我是不是应该先取得当前服务器的localSession?
1. servers.json  1. 在gate 中设置了connector 和chat 的关系 Handler.prototype.queryEntry = function(msg, session, next) { var name = msg.name; var pwd = msg.pwd; if(!name || !pwd){ next(null,{code:Code.FAIL}); return; } ``` var...
如果我要把项目卖给别人或者部署到非自己的公司服务器,那我的项目(产品状态)如何保护项目源代码呢? 有没有可能,把项目的javascript源代码加密或者直接能在发布状态的时候,编译成二进制库呢?
pomelo不是分布式的,为什么例子都是在一台机器上运行的,如何在多个机器上分布运行不同的服务啊。配置是怎样的,需要将代码拷贝到每个机器上吗,这些机器的操作系统必须是一样的吗,怎样将这些服务全部启动?
比如在player.js中 我觉得可以把 Player.prototype.save = function() { this.emit('save'); }; 改成 Player.prototype.save = function() { app.get('sync').exec('playerSync.updatePlayer', this.id, this.strip()); };