Skip to content

Instantly share code, notes, and snippets.

@mikermcneil
Created February 10, 2014 06:02
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mikermcneil/8911041 to your computer and use it in GitHub Desktop.
Save mikermcneil/8911041 to your computer and use it in GitHub Desktop.
// 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; });
@ultrasaurus
Copy link

FYI: you need to also remove client-side javascript for sockets, see: balderdashy/sails#3580 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment