Giter Site home page Giter Site logo

bonbon's Introduction

bonbon - a node.js server

installation

npm install bonbon usage

nodejs编写,运行需要安装node。 test文件夹下,有一个聊天示例,并附有unity和cocos creator的客户端代码。可用于简单了解。将test文件夹里面的所有文件复制到根目录,双击start.bat即可。 源代码量极少,可阅读,熟悉相关api。 简介

Homepage: https://github.com/sooncool/bonbon

master服务器,负责启动并管理所有服务器的增加和移除(可单独启动)。

前段服务器,(frontend: true)负责承载用户的连接。

后端服务器, 通常处理游戏逻辑。

rpc服务器,负责中转服务器之间的rpc调用。

启动所有服务器; node app.js

单独启动master服务器: node app.js startMode=alone

单独启动其他服务器:node app.js serverType=connector id=connector-server-1

单独启动其他服务器指定端口: node app.js serverType=connector id=connector-server-1 port=3001

bonbon's People

Contributors

sooncool avatar

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.