Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
connect: async function (config = {}) {
if (connection) {
console.info('there is an active connection - closing current connection')
await driver.disconnect()
console.info('closed')
}
console.info('new connection request')
connection = await r.connect(config)
console.info('connected')
return connection
},
async disconnect () {