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

Method __call__

starlette/websockets.py:195–196  ·  starlette/websockets.py::WebSocketClose.__call__
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sendFunction · 0.50

Tested by

no test coverage detected