jina.peapods.runtimes.gateway.websocket package

Module contents

class jina.peapods.runtimes.gateway.websocket.WebSocketRuntime(*args, **kwargs)[source]

Bases: jina.peapods.runtimes.zmq.asyncio.AsyncNewLoopRuntime

Runtime for Websocket interface.

async async_setup()[source]

The async method setup the runtime.

Setup the uvicorn server.

async async_run_forever()[source]

Running method of ther server.

async async_cancel()[source]

Stop the server.