add support for namespace authentication

fixes #32
This commit is contained in:
Marcel Chastain 2015-07-18 19:20:19 -07:00
parent 1368f31db9
commit 43f7427407

View File

@ -53,7 +53,8 @@ function noQsMethod(options) {
if (server.$emit) {
server.$emit('authenticated', socket);
} else {
server.server.sockets.emit('authenticated', socket);
// explicit namespace
server.server.nsps[socket.nsp.name].emit('authenticated', socket);
}
};