MCPcopy Create free account
hub / github.com/encode/starlette / BytesEchoApp

Class BytesEchoApp

benchmarks/websocket_benchmark.py:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class BytesEchoApp:
28 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
29 websocket = WebSocket(scope, receive, send)
30 await websocket.accept()
31 await websocket.send_bytes(await websocket.receive_bytes())
32 await websocket.close()
33
34
35class JSONEchoApp:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected