菜鸟求助, pomelo wss 连不上

前端报错:
WebSocket connection to 'wss://xx.xx.xx.xx:3714/' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED
服务端报错:
[2017-06-15 17:48:14.026] [ERROR] pomelo - [/home/chatofpomelo-new/game-server/node_modules/pomelo/lib/connectors/hybrid/tcpsocket.js] close the connection with invalid head message, the remote ip is 27.151.93.90 && port is 24559 && message is [22,3,1,0,156,1,0,0,152,3,3,116,1,37,51,127,74,92,152,57,172,163,98,72,1,17,60,76,217,159,252,235,233,34,210,225,104,194,135,197,247,197,136,0,0,28,122,122,192,43,192,47,192,44,192,48,204,169,204,168,192,19,192,20,0,156,0,157,0,47,0,53,0,10,1,0,0,83,42,42,0,0,255,1,0,1,0,0,23,0,0,0,35,0,0,0,13,0,20,0,18,4,3,8,4,4,1,5,3,8,5,5,1,8,6,6,1,2,1,0,5,0,5,1,0,0,0,0,0,18,0,0,117,80,0,0,0,11,0,2,1,0,0,10,0,10,0,8,10,10,0,29,0,23,0,24,58,58,0,1,0]

使用 pomelo 2.2.5 。 服务端和客户端按文档改写成wss以后,前后端报错。大大们帮我看看,这ssl证书的不对导致的问题不?
因为项目里的链接是 wss://+ip+:port 。 纠结 ip可以申请到ssl证书嘛?
如果是域名证书的话, wss://+域名+:port 这样的链接能访问得到不? 该咋配置才能让域名的wss连接能访问得到额? ![enter image description here][1]

标签: pomelo
hlhdss 在 6-15 18:13发布 分享到 weibo
回到顶部