File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,9 @@ async def wait_until_stopped(self) -> None:
210
210
async def connect (self ) -> None :
211
211
try :
212
212
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
214
216
)
215
217
except Exception as exc :
216
218
self .on_error_future .set_exception (Error (f"websocket.connect: { str (exc )} " ))
@@ -245,6 +247,6 @@ async def run(self) -> None:
245
247
246
248
def send (self , message : Dict ) -> None :
247
249
if self ._stopped or (hasattr (self , "_connection" ) and self ._connection .closed ):
248
- raise Error ("Playwright connection closed " )
250
+ raise Error ("Playwright connection closed3 " )
249
251
data = self .serialize_message (message )
250
252
self ._loop .create_task (self ._connection .send (data ))
You can’t perform that action at this time.
0 commit comments