MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _ConnectionWithoutClosed

Class _ConnectionWithoutClosed

tests/test_browser_captcha_personal.py:47–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47class _ConnectionWithoutClosed:
48 def __init__(self):
49 self.mapper = {}
50 self.handlers = {}
51 self.websocket = None
52 self.connect_count = 0
53 self.register_count = 0
54 self.__count__ = itertools.count(0)
55
56 async def send(self, _cdp_obj, _is_update=False):
57 raise AssertionError("original send should be patched")
58
59 async def connect(self):
60 self.connect_count += 1
61 self.websocket = _FakeWebSocket(self)
62
63 async def _register_handlers(self):
64 self.register_count += 1
65
66
67def _fake_cdp_command():

Calls

no outgoing calls