(url: string, name: string, force: boolean = false)
| 255 | // Automates sharing browser sessions through the |
| 256 | // shareServer method |
| 257 | export async function shareBrowser(url: string, name: string, force: boolean = false): Promise<void> { |
| 258 | if (autoShareBrowser || force) { |
| 259 | const _url = new URL(url); |
| 260 | const disposable = await shareServer(_url, name); |
| 261 | console.log(`[HostService] shared ${name} at ${url}`); |
| 262 | browserDisposables.push({ Disposable: disposable, url, name }); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | export function closeBrowser(url: string): void { |
| 267 | browserDisposables.find( |
no test coverage detected