playwright/packages/playwright-core/src/server/dispatchers
Andrey Lushnikov 8538f61a72
feat(containers): implement global network tethering for playwright server (#17719)
This patch implements a new mode of network tethering for Playwright
server & its clients.
With this patch:
- playwright server could be launched with the
`--browser-proxy-mode=tether` flag to engage in the new mode
- a new type of client, "Network Tethering Client" can connect to the
server to provide network traffic to the browsers
- all clients that connect to the server with the `x-playwright-proxy:
*` header will get traffic from the "Network Tethering Client"

This patch also adds an environment variable
`PW_OWNED_BY_TETHER_CLIENT`. With this env, playwright server will
auto-close when the network tethering client disconnects. It will also
auto-close if the network client does not connect to the server in the
first 10 seconds of the server existence. This way we can ensure that
`npx playwright docker start` blocks terminal & controls the lifetime of
the started container.
2022-11-03 13:47:51 -07:00
..
androidDispatcher.ts feat(android): add AndroidDevice.close event (#18306) 2022-10-25 18:18:14 -07:00
artifactDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
browserContextDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
browserDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
browserTypeDispatcher.ts chore: move connect utility into localUtils (#17590) 2022-09-27 13:05:06 -07:00
cdpSessionDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
consoleMessageDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
debugControllerDispatcher.ts chore: send structured codegen info to the debug controller (#18491) 2022-11-01 18:02:14 -07:00
DEPS.list chore: make bundles typed (#13620) 2022-04-18 17:50:25 -07:00
dialogDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
dispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
electronDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
elementHandlerDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
frameDispatcher.ts feat: locator.blur() (#18303) 2022-10-25 06:10:40 -07:00
jsHandleDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
jsonPipeDispatcher.ts chore: move connect utility into localUtils (#17590) 2022-09-27 13:05:06 -07:00
localUtilsDispatcher.ts feat(containers): implement global network tethering for playwright server (#17719) 2022-11-03 13:47:51 -07:00
networkDispatchers.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
pageDispatcher.ts chore: allow not overriding media when creating context (#18413) 2022-10-31 09:09:52 -07:00
playwrightDispatcher.ts feat(android): add Android.{launchServer,connect} (#18263) 2022-10-24 17:23:11 -07:00
selectorsDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
streamDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
tracingDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00
writableStreamDispatcher.ts chore: move protocol and trace types into the top-level packages (#17486) 2022-09-20 18:41:51 -07:00