Comments (15)
汗,怎么发现好像不支持多个连接了。。。
from pomelo-cocos2d-js.
他能支持多个连接吗??
from pomelo-cocos2d-js.
为啥不支持??
from pomelo-cocos2d-js.
我需要两个连接一直保持着,因为只提供了window.pomelo一个客户端,要再连接一个的话,需要断开他,才能再连接!!
from pomelo-cocos2d-js.
那个也只是定义啊,你再连接一下就是另外一个连接了
from pomelo-cocos2d-js.
能给个例子吗?
from pomelo-cocos2d-js.
需要保持2个pomelo连接??
from pomelo-cocos2d-js.
是的!!
from pomelo-cocos2d-js.
原因是啥?一般保持一个就行了,客户端只与connector相连,其它的服务器间调用可以走connector然后转rpc
from pomelo-cocos2d-js.
一个是场景的 一个是副本的 但是因为副本的实时性要求高,所以希望把副本当成前端服务器
from pomelo-cocos2d-js.
场景和副本不会同时进入把,进入副本的时候再连接不就好了
from pomelo-cocos2d-js.
聊天要一直在 聊天是另外一个前端服务器 跟副本不是同一个
from pomelo-cocos2d-js.
一般前端服务器就是一个类型的,性能方面,connector 支持扩展的,一般都是公用同一个前端服务器,相当于游戏里面的分区,你分成两个也不太好管理,比如停服维护,本来你可以只关一个分区的前端服务器,那么这批玩家都下线了,现在分成两个,玩家所在的聊天和副本的前端服务器可能会有交集
from pomelo-cocos2d-js.
聊天和副本纯属于后端服务器的逻辑了,没必要把前端服务器也区分开来
from pomelo-cocos2d-js.
好的 我想想看
from pomelo-cocos2d-js.
Related Issues (17)
- 这个项目还会维护更新吗? HOT 21
- pomelo.removeEventListener
- 这次修改成browerify模式,要怎么来使用 HOT 4
- TypeError: buffer.readUInt8 is not a function HOT 6
- Why wss isn't supported? HOT 1
- 如何使用browserify和cocos2d HOT 2
- 支持socket.io 协议吗? HOT 5
- Uncaught TypeError: Cannot read property 'id' of undefined HOT 2
- 使用jsb连接不上pomelo?
- 在android的微信和qq浏览器访问,服务器报could not find handle invalid data package HOT 2
- setTimeout: cc use second , pomelo reconnect use milisecond HOT 2
- Is this code possible to use cocos2d-js 3.14 version?
- 你在说明中使用的目录是pomelo-cocos2d-jsb,但是通过clone下载的目录是pomelo-cocos2d-js HOT 2
- 可以在cocos2d-js 2.2.5 下用嗎?
- 可以考虑发布成一个pomelo-cocos2d-js-min.js文件吗?这样html5和jsb就可以共用同一个文件了 HOT 3
- 这个项目还会维护更新吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pomelo-cocos2d-js.