We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9b09f commit f57cc82Copy full SHA for f57cc82
playwright/_impl/_transport.py
@@ -24,6 +24,7 @@
24
25
import websockets
26
from pyee import AsyncIOEventEmitter
27
+from websockets.client import connect as websocket_connect
28
29
from playwright._impl._api_types import Error
30
from playwright._impl._helper import ParsedMessagePayload
@@ -185,7 +186,7 @@ async def wait_until_stopped(self) -> None:
185
186
187
async def run(self) -> None:
188
try:
- self._connection = await websockets.connect(
189
+ self._connection = await websocket_connect(
190
self.ws_endpoint, extra_headers=self.headers
191
)
192
except Exception as exc:
0 commit comments