I want to disable socket.io service, in this version of the development phase, I was not ready to use it, how should I configure?
To disable it on the server side do this: https://gist.github.com/mikermcneil/8911041
Then on the client side just remove the .js files that initialize it.
For me "sockets":false
in .sailsrc or sails/hooks.js is not working.
sails v0.12.13, node v7.4.0.
I simply added this to config/sockets.js
beforeConnect: function(handshake, cb) {
return cb('socket connections not allowed!', false);
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With