2021-01-07 11:46:05 -08:00
# class: BrowserServer
2022-07-05 16:24:50 -08:00
* since: v1.8
2021-01-07 16:12:25 -08:00
* langs: js
2021-01-07 11:46:05 -08:00
## event: BrowserServer.close
2022-07-05 16:24:50 -08:00
* since: v1.8
2021-01-07 11:46:05 -08:00
Emitted when the browser server closes.
## async method: BrowserServer.close
2022-07-05 16:24:50 -08:00
* since: v1.8
2021-01-07 11:46:05 -08:00
Closes the browser gracefully and makes sure the process is terminated.
## async method: BrowserServer.kill
2022-07-05 16:24:50 -08:00
* since: v1.8
2021-01-07 11:46:05 -08:00
Kills the browser process and waits for the process to exit.
## method: BrowserServer.process
2022-07-05 16:24:50 -08:00
* since: v1.8
2021-01-07 11:46:05 -08:00
- returns: < [ChildProcess]>
Spawned browser application process.
## method: BrowserServer.wsEndpoint
2022-07-05 16:24:50 -08:00
* since: v1.8
2021-01-07 11:46:05 -08:00
- returns: < [string]>
Browser websocket url.
Browser websocket endpoint which can be used as an argument to [`method: BrowserType.connect` ] to establish connection
to the browser.
2024-05-27 17:24:23 +08:00
Note that if the listen `host` option in `launchServer` options is not specified, localhost will be output anyway, even if the actual listening address is an unspecified address.