Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
primus.on('disconnection', spark => app.emit('disconnect', getParams(spark)));
}
if (typeof configurer === 'function') {
debug('Calling Primus configuration function');
configurer.call(this, this.primus);
}
resolve(this.primus);
return this._super.apply(this, arguments);
}
}, app);
});
app.configure(commons({
done,
socketMap,
getParams,
emit: 'send'
}));
};
}
io.sockets.setMaxListeners(64);
}
if (typeof config === 'function') {
debug('Calling SocketIO configuration function');
config.call(this, this.io);
}
resolve(this.io);
return this._super.apply(this, arguments);
}
}, app);
});
app.configure(commons({
done,
socketMap,
getParams,
emit: 'emit'
}));
};
}
}
return middie.use(location);
}
});
Object.getOwnPropertyNames(feathersApp).forEach(prop => {
const feathersProp = Object.getOwnPropertyDescriptor(feathersApp, prop);
const serverProp = Object.getOwnPropertyDescriptor(server, prop);
if (serverProp === undefined && feathersProp !== undefined) {
Object.defineProperty(server, prop, feathersProp);
}
});
server.configure(routing());
server.configure(rest);
return server;
}