MCPcopy
hub / github.com/encode/starlette / WebSocketEndpoint

Class WebSocketEndpoint

tests/test_routing.py:342–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341
342class WebSocketEndpoint:
343 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
344 websocket = WebSocket(scope=scope, receive=receive, send=send)
345 await websocket.accept()
346 await websocket.send_json({"URL": str(websocket.url_for("websocket_endpoint"))})
347 await websocket.close()
348
349
350mixed_protocol_app = Router(

Callers 1

test_routing.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected