Skip to content

Instantly share code, notes, and snippets.

View atorralb's full-sized avatar
🎯
Focusing

Angel T. Durán atorralb

🎯
Focusing
View GitHub Profile
@atorralb
atorralb / follow links
Created September 20, 2014 00:56
This is a nice way to show you how to follow links or tell phantomjs how to proceed aftter opening each link
@atorralb
atorralb / gist:8986799
Last active August 29, 2015 13:56
emit a message to a different namespace in socket.io... useful when you want to update different namespaces with different data
var chat = io
.of('/chat')
.on('connection', function (socket) {
//warn the admin that somebody visit the site
io.of('/admins').emit('message', { message: "Hello admins! im a different namespace phocker" });
});