-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
browserstack-local: bs_Local.isRunning() returns undefined #80
Comments
Exactly the same error happens to me with the exact same setup aka async function calls. Any suggestion how to solve this? Running the latest version of browserstack-local. |
Now it works with following function call:
Hope this helps! |
Try bs_Local.startSync(bsLocalArgs);
console.log('Started BrowserStackLocal', bs_Local.isRunning()); |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue:
bs_Local.isRunning() is always returns undefined.
Details
My Code:
const browserstackLocal = require('browserstack-local');
const bs_Local = new browserstackLocal.Local();
/* Function to establish local connection */
async newBrowserLocal(browserStackConfig) {
const bsLocalArgs = { key: browserStackConfig.bsKey, forcelocal: 'true' };
await bs_Local.start(bsLocalArgs, async function () {
await console.log('Started BrowserStackLocal');
});
}
await console.log(bs_Local.isRunning());
output:
Started BrowserStackLocal
undefined
The text was updated successfully, but these errors were encountered: