| Conditions | 1 |
| Total Lines | 5 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import aiohttp |
||
| 13 | async def make_ws_client(aiohttp_client, rpc_server: aiohttp_rpc.WsJsonRpcServer) -> aiohttp.ClientSession: |
||
| 14 | app = web.Application() |
||
| 15 | app.router.add_get('/rpc', rpc_server.handle_http_request) |
||
| 16 | app.on_shutdown.append(rpc_server.on_shutdown) |
||
| 17 | return await aiohttp_client(app) |
||
| 18 |