Created
April 30, 2014 18:36
-
-
Save cranic/7a8180b8c0ffa11c9ffc 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
io.configure(function (){ | |
io.set('authorization', function (handshakeData, callback) { | |
if(handshakeData.xdomain) | |
return callback(null, false); // Whoa! Tem cachorro nesse mato! | |
callback(null, true) // Bem vindo, usuário! | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment