diff --git a/server/src/browser-management/controller.ts b/server/src/browser-management/controller.ts index 39b8f931..eb51a104 100644 --- a/server/src/browser-management/controller.ts +++ b/server/src/browser-management/controller.ts @@ -81,4 +81,14 @@ export const destroyRemoteBrowser = async (id: string) : Promise => { } 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(); +}; };