In Sails 0.12,I could connect my node in Sails Socket via socket.io using the code bellow.
const io = require(\'socket.io-client\'); const config = { host: