MCPcopy Index your code
hub / github.com/github/copilot-sdk / ws_handler

Function ws_handler

python/e2e/test_copilot_request_handler_e2e.py:148–152  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

146 ws_requests = [0]
147
148 async def ws_handler(connection) -> None:
149 async for _raw in connection:
150 ws_requests[0] += 1
151 for event in responses_events(WS_TEXT, "resp_stub_ws"):
152 await connection.send(json.dumps(event))
153
154 ws_server = await ws_serve(ws_handler, "127.0.0.1", 0)
155 ws_port = ws_server.sockets[0].getsockname()[1]

Callers

nothing calls this directly

Calls 2

responses_eventsFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…