@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.
41 lines (40 loc) • 1.39 kB
TypeScript
import { HubConnectionState } from "@microsoft/signalr";
/**
* SignalR state object provided by the signalrService.onNewState observable
*
* @property {HubConnectionState} state the actual state of the signalr hub connection
* @property {string} message any additional info received from SignalR on state change events
*/
export declare class SignalrStateModel {
state: HubConnectionState;
message: any;
}
/**
* SignalR response object provided by the signalrService.onNewMessage observable
*
* @property {any} data the actual data received from the SignalR hub connection
* @property {string} received the ISO timestamp of when the event was received
* @property {string} type the type of the event, which matches the event name as given in the
* SignalR configuration model via the signalrEvents list
*/
export declare class SignalrResponseModel {
data: any;
received: string;
type: string;
constructor(ts?: string);
}
export declare class SignalrSendModel {
data: any;
type: string;
}
/**
* SignalR configuration object to be provided via "forRoot" method.
*
* @property {string} signalrUrl the URL of your SignalR hub
* @property {string[]} signalrEvents the list of events to listen to on the SignalR hub
*/
export declare class SignalrConfigModel {
signalrUrl: string;
signalrEvents: string[];
constructor(props: any);
}