Class HttpKodiClient

Hierarchy

  • BaseKodiClient
    • HttpKodiClient

Constructors

  • Constructor for the HTTP client Uses Axios for communication

    Parameters

    Returns HttpKodiClient

Properties

axiosInstance: AxiosInstance
sendMessage: ISendMessage = ...

The sendMessage method, the actual JSON sent to Kodi

name of the method e.g. "Addons.ExecuteAddon"

string, number, object, array, whatever the method accepts

Promise containing the result, or rejects with an error

url: string

Methods

  • Initializing all namespaces MAKE SURE THIS IS CALLED IF YOU'RE EXTENDING THE BaseKodiClient class

    Parameters

    • sendMessage: ISendMessage

      the function used to communicate with Kodi

    Returns void