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

Class _FakeWebSocket

tests/test_browser_captcha_personal.py:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34class _FakeWebSocket:
35 def __init__(self, owner):
36 self.owner = owner
37 self.close_code = None
38 self.messages = []
39
40 async def send(self, message):
41 self.messages.append(message)
42 payload = json.loads(message)
43 transaction = self.owner.mapper[payload["id"]]
44 transaction(result={"ok": True})
45
46
47class _ConnectionWithoutClosed:

Callers 1

connectMethod · 0.85

Calls

no outgoing calls

Tested by 1

connectMethod · 0.68