pomelo笔记


Pomelo:一个快速、可扩展、Node.js分布式游戏服务器框架


入门参考链接

  https://github.com/NetEase/pomelo/wiki/Home-in-Chinese

  其它链接:  

  https://github.com/NetEase/pomelo

  https://www.npmjs.com/package/pomelo

[2017-11-23 11:54:42.226] [ERROR] console - Option path is not valid. Please refer to the README.
[2017-11-23 11:54:42.226] [ERROR] console - Option close timeout is not valid. Please refer to the README.
[2017-11-23 11:54:42.226] [ERROR] console - Option heartbeats is not valid. Please refer to the README.
[2017-11-23 11:54:42.226] [ERROR] console - Option log level is not valid. Please refer to the README.

  问题原因和解决方式

  原因:新版的socket.io用法不正确的导致的,官方早已修复,就是没有publish到npm包中

  修复方式:把node_modules目录下的pomelo中sioconnector.js(../game-server/node_modules/pomelo/lib/connectors/sioconnector.js

                   替换为 https://github.com/NetEase/pomelo/blob/master/lib/connectors/sioconnector.js

 替换后再启动game-server,就没有这些错误提示了^_^!

详细文档参考链接

https://www.cnblogs.com/zhongweiv/p/nodejs_pomelo.html

注:本文转载自​https://www.cnblogs.com/zhongweiv/p/nodejs_pomelo.html,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如有侵权行为,请联系我们,我们会及时删除。

评论0



    0.352231s