问题1:
[ERROR] console - Option path is not valid. Please refer to the README.
[ERROR] console - Option close timeout is not valid. Please refer to the README.
[ERROR] console - Option heartbeats is not valid. Please refer to the README.
[ERROR] console - Option log level is not valid. Please refer to the README.
解决方法
用 https://github.com/NetEase/pomelo/blob/master/lib/connectors/sioconnector.js3
来替换
game-server\node_modules\pomelo\lib\connectors\sioconnector.js
即可解决。
问题2、creator用的pomelo客户端插件
https://github.com/fuhongxue/CocosCreator-Pomelo-plugin/blob/master/pomelo-creator-client.js
问题3、新建工程正常,加入gate后启动问题
解决:(这个针对启动服务器时gate的错误)
game-server/config下servers.json添加gate配置
game-server/config下adminServer.json添加gate配置
app.js中加入(这个针对连接时WebSocket connection to ‘ws://127.0.0.1:3014/’ failed: Connection closed before receiving a handshake response错误问题)
app.configure('production|development', 'gate', function(){
app.set('connectorConfig', {
connector: pomelo.connectors.hybridconnector
});
});