使用pomelo建立的项目而且安装依赖项目以后启动项目如出现以下错误提示node
[2018-12-18 11:23:16.161] [ERROR] console - Option path is not valid. Please refer to the README.
[2018-12-18 11:23:16.161] [ERROR] console - Option close timeout is not valid. Please refer to the README.
[2018-12-18 11:23:16.161] [ERROR] console - Option heartbeats is not valid. Please refer to the README.
[2018-12-18 11:23:16.161] [ERROR] console - Option log level is not valid. Please refer to the README.
问题缘由和解决方式git
缘由:新版的socket.io用法不正确的致使的,官方早已修复,就是没有publish到npm包中github
修复方式:把node_modules目录下的pomelo中sioconnector.js(../game-server/node_modules/pomelo/lib/connectors/sioconnector.js) npm
替换为 https://github.com/NetEase/pomelo/blob/master/lib/connectors/sioconnector.jssocket
替换后再启动game-server,就没有这些错误提示了socket.io