We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在game-server的app.js中如下配置: ``// app configuration app.configure('production|development', 'connector', function(){ app.set('connectorConfig', { connector : pomelo.connectors.hybridconnector, heartbeat : 3, useDict : true, useProtobuf : true, ssl: { type: 'wss', key: fs.readFileSync("密钥位置"), cert: fs.readFileSync("证书位置") } }); });
然后把本项目main.js中的15行改掉,就可以直接使用wss来连接pomelo了啊。。。这样会不会更优雅一点?还是说有什么我不知道的缺点?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在game-server的app.js中如下配置:
``// app configuration
app.configure('production|development', 'connector', function(){
app.set('connectorConfig',
{
connector : pomelo.connectors.hybridconnector,
heartbeat : 3,
useDict : true,
useProtobuf : true,
ssl: {
type: 'wss',
key: fs.readFileSync("密钥位置"),
cert: fs.readFileSync("证书位置")
}
});
});
然后把本项目main.js中的15行改掉,就可以直接使用wss来连接pomelo了啊。。。这样会不会更优雅一点?还是说有什么我不知道的缺点?
The text was updated successfully, but these errors were encountered: