MCPcopy Create free account
hub / github.com/IBM/mcp-cli / FakeWs

Class FakeWs

tests/apps/test_session.py:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class FakeWs:
24 def __init__(self):
25 self.sent: list[str] = []
26 self.closed = False
27
28 async def send(self, msg: str) -> None:
29 self.sent.append(msg)
30
31 async def close(self) -> None:
32 self.closed = True
33
34
35def _make_bridge() -> AppBridge:

Calls

no outgoing calls