sails.io.js

how to use sails.io.js version 0.11.3 in node server

◇◆丶佛笑我妖孽 提交于 2019-11-28 14:38:52
I would like to create a chat application in my sailjs based project, How and where can i configure the socket and related setting in the server ? I got a sample project from this repository but it is using sails v0.10 and i need to use sails v0.11.3, but v0.11.3 having many changes while using socket in Nodejs script, for example, We can't use onConnect since it is deprecated. I have tried this example, but not working this with sail v0.11.3 https://github.com/sgress454/sailsChat This is the code i have done, but i don't know where should i put , it is not working when i put this in sockets

how to use sails.io.js version 0.11.3 in node server

ぐ巨炮叔叔 提交于 2019-11-27 08:40:45
问题 I would like to create a chat application in my sailjs based project, How and where can i configure the socket and related setting in the server ? I got a sample project from this repository but it is using sails v0.10 and i need to use sails v0.11.3, but v0.11.3 having many changes while using socket in Nodejs script, for example, We can't use onConnect since it is deprecated. I have tried this example, but not working this with sail v0.11.3 https://github.com/sgress454/sailsChat This is the