Skip to content

Commit b23a29c

Browse files
authored
fix(connect): when using a large payload (#1351)
1 parent a02f10b commit b23a29c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

playwright/_impl/_transport.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ async def wait_until_stopped(self) -> None:
210210
async def connect(self) -> None:
211211
try:
212212
self._connection = await websocket_connect(
213-
self.ws_endpoint, extra_headers=self.headers
213+
self.ws_endpoint,
214+
extra_headers=self.headers,
215+
max_size=256 * 1024 * 1024, # 256Mb
214216
)
215217
except Exception as exc:
216218
self.on_error_future.set_exception(Error(f"websocket.connect: {str(exc)}"))

0 commit comments

Comments
 (0)