mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
parent
1368f31db9
commit
43f7427407
@ -53,7 +53,8 @@ function noQsMethod(options) {
|
|||||||
if (server.$emit) {
|
if (server.$emit) {
|
||||||
server.$emit('authenticated', socket);
|
server.$emit('authenticated', socket);
|
||||||
} else {
|
} else {
|
||||||
server.server.sockets.emit('authenticated', socket);
|
// explicit namespace
|
||||||
|
server.server.nsps[socket.nsp.name].emit('authenticated', socket);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user