Skip to content

Class: AdonisKyooProvider ​

The Adonis Kyo͞o provider class. This class is responsible for registering the Kyoo connection and performing various actions during the different phases of the Adonis application lifecycle.

Methods ​

ready() ​

ts
ready(): Promise<void>;

Initializes the Kyoo connection when the application is:

  • In web mode: After the HTTP server has been started and is ready to accept requests.
  • In console mode: Just before the run method of the main command.
  • In test mode: Just before running all the tests, but after the tests have been imported.
  • In REPL mode: Before the REPL prompt is displayed on the terminal.

Returns ​

Promise<void>


register() ​

ts
register(): void;

Registers the kyoo bindings with the Adonis IoC container.

Returns ​

void


shutdown() ​

ts
shutdown(): Promise<void>;

Gracefully closes connections and cleans up resource handles used by the Kyoo connection. This method is called when the application is gracefully shutting down.

Returns ​

Promise<void>