jina.serve.runtimes.gateway.websocket.app module#
- jina.serve.runtimes.gateway.websocket.app.get_fastapi_app(args, topology_graph, connection_pool, logger)[source]#
Get the app from FastAPI as the Websocket interface.
- Parameters
args (argparse.Namespace) – passed arguments.
topology_graph (TopologyGraph) – topology graph that manages the logic of sending to the proper executors.
connection_pool (GrpcConnectionPool) – Connection Pool to handle multiple replicas and sending to different of them
logger (JinaLogger) – Jina logger.
- Returns
fastapi app