我想在基于水手的项目中创建一个聊天应用程序,如何在服务器上配置套接字和相关设置?我从这个存储库中获得了一个示例项目,但它使用的是sails v0.10,我需要使用sails v0.11.3,但是v0.11.3在Nodejs脚本中使用套接字时有很多更改,例如,我们不能使用onConnect,因为它是不推荐使用的。这是我已经完成的代码,但是我不知道我应该把它放在哪里,当我把它放在sockets.js文件中时,它不能工作。// (you have to specify the host and port
我尝试为sails.io.js和socket.io-client安装npm,然后写道:at selfInvoking (C:\Users\Evolver\Documents\programming\pipegame\game6\node_modules\sails.io.js\sails.io.js:812:18)
a