how to use rpc to get i need area when architect multiple connector, area?
This is picture architect of lordofpomelo:

I don't know call from area to another area.
Can you explain help me?
I only see use line command at process connector:
var onUserLeave = function (app, session, reason) { if(!session || !session.uid) { return; } app.rpc.area.playerRemote.playerLeave(session, {playerId: session.get('playerId'), instanceId: session.get('instanceId')}, function(err){ if(!!err){ logger.error('user leave error! %j', err); } }); };
and function handler at process area:
exp.playerLeave = function(args, cb){ var playerId = args.playerId; var area = pomelo.app.areaManager.getArea(args.instanceId); var player = area.getPlayer(playerId); .... .... };
I don't understand your question correctly. But about RPC in Pomelo you can read here: https://github.com/NetEase/pomelo/wiki/Rpc-framework and here: https://github.com/NetEase/pomelo/wiki/Rpc-framework
I'm confused. What's the diffirence between here: https://github.com/NetEase/pomelo/wiki/Rpc-framework and here: https://github.com/NetEase/pomelo/wiki/Rpc-framework. It seems to be the same address
tks @impcyber and @TrailMa .
Actually, i want a way comunication the area together.
From area to another area.
Sorry, i'm wrong, the second url is: https://github.com/NetEase/pomelo/wiki/Rpc-invocation
letiennam29, why not use somthing like AreaManager and make area pool?
@impcyber correct problem i need AreaManager(area pool), but I don't know how to create and use.
Can you tell me about the sample area manager?
I have found what I needed.
Call to from area to another area using: https://github.com/NetEase/pomelo-rpc#clientrpcinvokeserverid-msg-cb
And look here: https://github.com/NetEase/lordofpomelo/blob/master/game-server/app/domain/area/instancePool.js
thank you very much @impcyber !