This section of the API relates to information about the connection to the server.

interface SmiConnectionApi {
    getAuthHeader(): null | string;
    getPort(): number | "";
    getProtocol(): null | "http" | "https";
    getServer(): string;
    isOnline(): boolean;
}

Methods

  • A method to return the authentication header, or null if the token does not exist.

    Returns null | string

  • A method to return the stored port, or an empty string if a port is not being used.

    Returns number | ""

  • A method to return the stored protocol, or null if the protocol does not exist.

    Returns null | "http" | "https"

  • A method to return the stored server name, including the tenant. For example: http://acme.myserver.com

    Returns string

  • Check if the app is connected to the server.

    Returns boolean