Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static async remote ({
protocol = DEFAULTS.protocol,
hostname = DEFAULTS.hostname,
port = DEFAULTS.port,
path = DEFAULTS.path,
...otherParams
},
capabilities = {}
) {
const params = {protocol, hostname, port, path, capabilities, ...otherParams};
const sessionClient = await WDCore.newSession(params);
return new Session(sessionClient);
}