jina.serve.runtimes.gateway.websocket package

Submodules

Module contents

class jina.serve.runtimes.gateway.websocket.WebSocketGatewayRuntime(args, cancel_event=None, \*kwargs*)[source]

Bases: jina.serve.runtimes.gateway.GatewayRuntime

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_teardown()[source]

    Shutdown the server.

  • async async_cancel()[source]

    Stop the server.