MCPcopy
hub / github.com/encode/uvicorn / websocket_connect

Method websocket_connect

tests/protocols/test_websocket.py:119–120  ·  view source on GitHub ↗
(self, message: WebSocketConnectEvent)

Source from the content-addressed store, hash-verified

117async def test_accept_connection(ws_protocol_cls: WSProtocol, http_protocol_cls: HTTPProtocol, unused_tcp_port: int):
118 class App(WebSocketResponse):
119 async def websocket_connect(self, message: WebSocketConnectEvent):
120 await self.send({"type": "websocket.accept"})
121
122 async def open_connection(url: str):
123 async with websockets.client.connect(url) as websocket:

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected