I want to disable the socket.io service, in this version of the development phase I was not ready to use it, how can I configure?
To disable it on the server side, follow these steps: https://gist.github.com/mikermcneil/8911041
Then, on the client side, simply delete the .js files that initialize it.
For me "sockets":falsein .sailsrc or sails / hooks.js does not work.
"sockets":false
sails v0.12.13, node v7.4.0.
I just added this to config / sockets.js
beforeConnect: function(handshake, cb) { return cb('socket connections not allowed!', false); },
.
<script src="/js/dependencies/sails.io.js" autoConnect="false" environment="production" headers='{ "x-csrf-token": "<%= typeof _csrf === 'undefined' ? _csrf : '' %>" }'> </script>
˚
Source: https://habr.com/ru/post/1528970/More articles:Error: Invalid hexadecimal string - node.jsHow to add a web hook for a specific assembly in TeamCity - restUsing Symfony2 UserPassword validator in form type - phpIs it possible to give an html5 trigger for a given line length? - html5One-page application + node.js backend (REST) + CMS - best concepts / practices - restAndroid WebView loads blank when viewing nested html lists - androidLet C ++ output the location of the class / namespace, the parameter is defined in - c ++matplotlib and Qt: mouse press event.key is always absent - pythonWhat is wrong with my syntax calling a stylesheet (css) from an FXML file? - java-8Running an application in another AppDomain in ASP.NET - c #All Articles