COMMUNICATE_D.registerCmd(cmd, func)Register command handler. In global/cmds and gs/cmds folder, there are many files that impletment command handler. These handler will be loaded when boot, then
this interface will be invoked.cmd: command name;
func: callback function, prototype is main(res, para), para is json format.

COMMUNICATE_D.registerSocketCmd(cmd, func)Register hander for socket command. In global/cmds/socket and gs/cmds/socket folder, there are many files that impletment command handler. These handler will be loaded when boot, then
this interface will be invoked.cmd: command name;func: command handler, prototype is main(socket, ...)

redis support

Sever will connect automatically to redis according to redis config information of Config/Config.js. Support to multi redis server simultaneously.

telnet console

When server run in linux, we can telnet to process, then interactive with script environment like win32 console.File name: global/base/Repl.js

account support

It support account auth、login、logout、save function.By default, it use redis to store account information, developer can use mysql database by self.File name: gs/daemons/Login.jsModule name: LOGIN_DMain API:

LOGIN_D.login(res, data)Account login. If account exists, it will check account, then return account information, else it will create a new account, then return account information.res: response object of http connection; data: login data in json format, must contain username and password.