code: function() {
            socket[options.decodedPropertyName] = decoded;
            socket.emit('authenticated');
            if (server.$emit) {
              server.$emit('authenticated', socket);
            } else {
              //try getting the current namespace otherwise fallback to all sockets.
              var namespace = (server.nsps && socket.nsp &&
                               server.nsps[socket.nsp.name]) ||
                              server.sockets;
  
              // explicit namespace
              namespace.emit('authenticated', socket);
            }
          }
docs: success handler