Forked from mikermcneil/disable-socket.io-in-sails.js
Last active
August 29, 2015 14:26
-
-
Save muhammadghazali/2cab698031042252c5d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To disable socket.io, disable the sockets hook (you'll have to disable the pubsub hook as well) | |
// This is a replacement for the default app.js file: | |
require('sails').lift({ | |
hooks: { | |
sockets: false, | |
pubsub: false | |
} | |
}, function doneLifting (err) { if (err) throw err; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment