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

Method __call__

starlette/websockets.py:195–196  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

193 self.reason = reason or ""
194
195 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
196 await send({"type": "websocket.close", "code": self.code, "reason": self.reason})

Callers

nothing calls this directly

Calls 1

sendFunction · 0.50

Tested by

no test coverage detected