BackendEvents | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Interface BackendEvents

    Extend this interface to register broadcast event formats

    interface BackendEvents {
        "platform:appliedconfig": null;
        "platform:assetpackcontrol.update": { assetpacks: string[] };
        "platform:internal.peer_token_response": {
            error: string;
            peerId: number;
            requestId: string;
        };
        "system:managedtasks.any.new": { taskids: number[] };
        "system:modulesupdate": null;
        "tollium:oauth_response": {
            error: string;
            expires: Date;
            responseid: string;
            responsetype: string;
            scopes: string[];
            token: string;
            version: number;
        };
    }
    Index

    Properties

    "platform:appliedconfig": null
    "platform:assetpackcontrol.update": { assetpacks: string[] }
    "platform:internal.peer_token_response": {
        error: string;
        peerId: number;
        requestId: string;
    }

    Invoked when completing oauth2 authorization, used to inform HareScript token getters

    Type Declaration

    • error: string
    • peerId: number

      The whuserPeerserver storing the token, 0 on error

    • requestId: string
    "system:managedtasks.any.new": { taskids: number[] }
    "system:modulesupdate": null
    "tollium:oauth_response": {
        error: string;
        expires: Date;
        responseid: string;
        responsetype: string;
        scopes: string[];
        token: string;
        version: number;
    }