2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

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);
}
};