Skip to content

Instantly share code, notes, and snippets.

View clopezpro's full-sized avatar
🎯
Focusing

Christian López C clopezpro

🎯
Focusing
View GitHub Profile
@clopezpro
clopezpro / app.js
Created February 2, 2023 16:31 — forked from hansott/app.js
Global socket.io in an application
var http = require('http');
var sockets = require('./sockets');
var server = http.createServer(app);
sockets.connect(server);
sockets.emit('event', { message: 'This is an event!' });
  • Disable git hooks
git config core.hooksPath no-hooks
  • Re-enable git hooks
git config --unset core.hooksPath