@engie-group/ngx-gem-spaas
Version:
This library contains services, components, images and styles to provide a unified look and way-of-working throughout GEM SPaaS.
32 lines (31 loc) • 1.1 kB
TypeScript
export declare enum CrossbarStates {
open = "open",
closed = "closed"
}
export declare class CrossbarResponseModel {
data: any;
received: string;
topic: string;
type: string;
constructor(ts?: string, topic?: string);
}
export declare class CrossbarSendModel {
data: any;
type: string;
}
/**
* Crossbar configuration object to be provided via "forRoot" method.
*
* @property {string} xbarUrl the URL of your crossbar websocket server
* @property {string[]} xbarTopics the list of topics to listen to on the crossbar websocket server
* @property {string} xbarTopicsPrefix prefix to be added to all topics, usually indicating the environment.
* For example, on the Cylon xbar server, prefixes 'cb.preprod' and 'cb.prod' are used. Leave empty if none.
* @property {string} xbarUidPwd to provide a user-id and password for the xbar basic auth (in the form of "ui:pwd") [optional]
*/
export declare class CrossbarConfigModel {
xbarTopics: string[];
xbarTopicsPrefix?: string;
xbarUidPwd?: string;
xbarUrl: string;
constructor(props: any);
}