MCPcopy Create free account
hub / github.com/abi/screenshot-to-code / __init__

Method __init__

backend/routes/generate_code.py:160–162  ·  view source on GitHub ↗
(self, websocket: WebSocket)

Source from the content-addressed store, hash-verified

158 """Handles WebSocket communication with consistent error handling"""
159
160 def __init__(self, websocket: WebSocket):
161 self.websocket = websocket
162 self.is_closed = False
163
164 async def accept(self) -> None:
165 """Accept the WebSocket connection"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected