-
Notifications
You must be signed in to change notification settings - Fork 2.9k
FAQ
- Is there any performance issues with nodejs relative to traditional languages of c++ etc ?
Nodejs built on chrome's javascript runtime is fairly fast, and the io advantages cannot be matched by any traditional language. We can solve the compute-intensive problem with a well-designed architecture. In actual game development, nodejs get better performance than the traditional languages.
- Do I have to develop in nodejs on server side because of using pomelo framework?
At present, pomelo does not achieve multi-language support. But the language which can compile to js like coffeescript is ok.
- What operating system do pomelo framework support?
Linux and Mac os. It has not been thoroughly tested in wondows.
- Do pomelo framework work well in project wthout javascript on client side?
Yes, it do. Almost all client languages are supported by pomelo for it built on socket.io. Reference is made to wiki of socket.io
- Is there any difference between
pomelo start
andcd game-server && node app
to start game server?
Generally,
pomelo start
is recommended because it records the started server' pid andpomelo stop
will work well to shutdown all the servers. ifcd game-ser && node app
, there may be port conflicts when restart new project for not killing all the servers.
- How do I deal with the port conflicts caused by project running in the backgroud?
In development environment, the file 'game-server/bin/shutdown.sh' can help you to kill all node servers in the backgroud. In production environment, the command
pomelo start
andpomelo stop
will work well.
- How to add parameters to command line in some process?
Modify configuration './game-server/config/server.json' and add parameters to target server. For instance, add parameters to connector server:
“connector”:[{"id":"connector-server-1", "host":"127.0.0.1", "port":4050, "wsPort":3050, "args":"--debug=[port], --trace, --prof, --gc"}]
- What is the start difference between development and production environment?
By default, the project runs in development environment without start parameter. If running in production environment, the project needs start parameter 'production'. And the parameter 'daemon' can make the project run in backgroud if the module 'forever' has been installed.
- How to deploy the multi-server architecture in production environment?
If simple parallel extensions, you can add the server configuration to './game-server/config/server.json'. Or you should do something with configuration according to some business logic. In addition, all the servers should support 'ssh agent forward'.
- What can I do when the lordofpomelo denies access in local deployment.
Please checkout your browser and make sure it supports websocket which can be tested in the website of http://websocketstest.com. If port conflicts, please modify the configuration locating './game-server/config/server.json'.
- How do I contribute to pomelo?
Welcome anyone contribute code to pomelo, we will put your name on the contributor list. You can follow us on github, and contribute code or modules to pomelo project.