shaojun427

Results comments of shaojun427

社区响应真快,我刚看到消息,pr都已经合并进去了

> 我创建了三个客户端。只有一个生效。 同样的问题 怎么解决的??

应该是 listen: { port: 80, hostname: '0.0.0.0', } hostname只对http的有效果,对ws的没有效果,因为局域网其他ip的客户端的ws接口都连不上

已经知道原因了,sockets等同于of('/'),egg把它封装到router那一层了。。。。controller里面就不能用sockets了,用了的话,客户端的nsp也会失效了。。。因为sockets的nsp必须是'/'

demo: https://riddle.alibaba-inc.com/riddles/fd9360eb

![test](https://user-images.githubusercontent.com/16127112/57686928-0d68de00-766d-11e9-95f2-83b31d2321b9.gif)

![image](https://user-images.githubusercontent.com/16127112/86772523-ca46a700-c086-11ea-8441-d0239588cbd4.png) ![image](https://user-images.githubusercontent.com/16127112/86772501-c1ee6c00-c086-11ea-8fac-27893cc5195f.png) 建议可以这样