playwright/src/remote
Dmitry Gozman b29b7df47e
fix(connect): handle disconnect in various situations (#6276)
There are a few ways for `connect()` to finish:
- `Browser.close()` from the client side.
- Browser on the server side did exit (e.g. crashed).
- Connection was dropped by either of the sides.

We reduce all the cases to the last one by dropping the
connection when client wants calls `Browser.close()` or
server-side browser exits.

In all these cases we should properly cleanup on the server side,
and ensure that all promises reject on the client side.
2021-05-06 09:34:06 -07:00
..
playwrightClient.ts chore(typescript): enable esModuleInterop (#5409) 2021-02-11 06:36:15 -08:00
playwrightServer.ts fix(connect): handle disconnect in various situations (#6276) 2021-05-06 09:34:06 -07:00