(server_runtime: UiServerRuntime, host: str, port: int)
| 39 | |
| 40 | |
| 41 | def start_web_server(server_runtime: UiServerRuntime, host: str, port: int) -> None: |
| 42 | run_uvicorn_with_retries( |
| 43 | host=host, |
| 44 | port=port, |
| 45 | build_asgi_app=server_runtime.build_asgi_app, |
| 46 | flush_callback=create_flush_callback(), |
| 47 | access_log=server_runtime.access_log_enabled(), |
| 48 | ws="wsproto", |
| 49 | ) |
| 50 | |
| 51 | |
| 52 | def create_flush_callback(): |
no test coverage detected