- Disable git hooks
git config core.hooksPath no-hooks
- Re-enable git hooks
git config --unset core.hooksPath
git config core.hooksPath no-hooks
git config --unset core.hooksPath
var http = require('http'); | |
var sockets = require('./sockets'); | |
var server = http.createServer(app); | |
sockets.connect(server); | |
sockets.emit('event', { message: 'This is an event!' }); |