Skip to content
New issue

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

pomelo本身不是支持wss吗?为什么还要特地用反向代理的方式? #18

Open
xiaobear250 opened this issue Jul 26, 2018 · 0 comments

Comments

@xiaobear250
Copy link

xiaobear250 commented Jul 26, 2018

在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了啊。。。这样会不会更优雅一点?还是说有什么我不知道的缺点?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant