Change module.exports.createServer.current to module.exports.currentServer