(scope, receive, send)
| 193 | def middleware_constructor(app): |
| 194 | @functools.wraps(app) |
| 195 | async def wrapped_app(scope, receive, send): |
| 196 | if scope["type"] != "websocket": |
| 197 | return await app(scope, receive, send) # pragma: no cover |
| 198 | |
| 199 | async def call_next(): |
| 200 | return await app(scope, receive, send) |
| 201 | |
| 202 | websocket = WebSocket(scope, receive=receive, send=send) |
| 203 | return await middleware_func(websocket, call_next) |
| 204 | |
| 205 | return wrapped_app |
| 206 |
nothing calls this directly
no test coverage detected
searching dependent graphs…