GithubHelp home page GithubHelp logo

Comments (15)

fantasyni avatar fantasyni commented on June 10, 2024

汗,怎么发现好像不支持多个连接了。。。

from pomelo-cocos2d-js.

181300156 avatar 181300156 commented on June 10, 2024

他能支持多个连接吗??

from pomelo-cocos2d-js.

fantasyni avatar fantasyni commented on June 10, 2024

为啥不支持??

from pomelo-cocos2d-js.

181300156 avatar 181300156 commented on June 10, 2024

我需要两个连接一直保持着,因为只提供了window.pomelo一个客户端,要再连接一个的话,需要断开他,才能再连接!!

from pomelo-cocos2d-js.

fantasyni avatar fantasyni commented on June 10, 2024

那个也只是定义啊,你再连接一下就是另外一个连接了

from pomelo-cocos2d-js.

181300156 avatar 181300156 commented on June 10, 2024

能给个例子吗?

from pomelo-cocos2d-js.

fantasyni avatar fantasyni commented on June 10, 2024

需要保持2个pomelo连接??

from pomelo-cocos2d-js.

181300156 avatar 181300156 commented on June 10, 2024

是的!!

from pomelo-cocos2d-js.

fantasyni avatar fantasyni commented on June 10, 2024

原因是啥?一般保持一个就行了,客户端只与connector相连,其它的服务器间调用可以走connector然后转rpc

from pomelo-cocos2d-js.

181300156 avatar 181300156 commented on June 10, 2024

一个是场景的 一个是副本的 但是因为副本的实时性要求高,所以希望把副本当成前端服务器

from pomelo-cocos2d-js.

fantasyni avatar fantasyni commented on June 10, 2024

场景和副本不会同时进入把,进入副本的时候再连接不就好了

from pomelo-cocos2d-js.

181300156 avatar 181300156 commented on June 10, 2024

聊天要一直在 聊天是另外一个前端服务器 跟副本不是同一个

from pomelo-cocos2d-js.

fantasyni avatar fantasyni commented on June 10, 2024

一般前端服务器就是一个类型的,性能方面,connector 支持扩展的,一般都是公用同一个前端服务器,相当于游戏里面的分区,你分成两个也不太好管理,比如停服维护,本来你可以只关一个分区的前端服务器,那么这批玩家都下线了,现在分成两个,玩家所在的聊天和副本的前端服务器可能会有交集

from pomelo-cocos2d-js.

fantasyni avatar fantasyni commented on June 10, 2024

聊天和副本纯属于后端服务器的逻辑了,没必要把前端服务器也区分开来

from pomelo-cocos2d-js.

181300156 avatar 181300156 commented on June 10, 2024

好的 我想想看

from pomelo-cocos2d-js.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.