feat: gget active remote browser id

This commit is contained in:
karishmas6
2024-06-01 11:20:14 +05:30
parent 2e207f2f5e
commit 000a047723

View File

@@ -81,4 +81,14 @@ export const destroyRemoteBrowser = async (id: string) : Promise<boolean> => {
}
return browserPool.deleteRemoteBrowser(id);
};
/**
* Returns the id of an active browser or null.
* Wrapper around {@link browserPool.getActiveBrowserId()} function.
* @returns {string | null}
* @category BrowserManagement-Controller
*/
export const getActiveBrowserId = (): string | null=> {
return browserPool.getActiveBrowserId();
};
};