@openfin/cloud-interop-core-api
Advanced tools
Comparing version 0.0.1-alpha.e6793f0 to 0.0.1-alpha.fba3468
@@ -14,3 +14,3 @@ import mqtt from 'mqtt'; | ||
type EventMap = { | ||
connected: () => void; | ||
reconnected: () => void; | ||
disconnected: () => void; | ||
@@ -20,2 +20,3 @@ context: (event: ContextEvent) => void; | ||
error: (error: Error) => void; | ||
'session-expired': () => void; | ||
}; | ||
@@ -31,10 +32,2 @@ /** | ||
#private; | ||
private cloudInteropSettings; | ||
private _sessionDetails?; | ||
private _mqttClient?; | ||
private reconnectRetryLimit; | ||
private logger; | ||
private reconnectRetries; | ||
private connectionParams?; | ||
private eventListeners; | ||
constructor(cloudInteropSettings: CloudInteropSettings); | ||
@@ -41,0 +34,0 @@ get sessionDetails(): CreateSessionResponse | undefined; |
@@ -34,2 +34,7 @@ export type LogLevel = 'log' | 'debug' | 'info' | 'warn' | 'error'; | ||
/** | ||
* Specifies how often keep alive messages should be sent to the cloud interop service in seconds | ||
* defaults to 30 | ||
*/ | ||
keepAliveIntervalSeconds?: number; | ||
/** | ||
* Optional function to call with any logging messages to allow integration with the host application's logging | ||
@@ -131,5 +136,14 @@ * | ||
export type ContextEvent = { | ||
/** | ||
* The context group | ||
*/ | ||
contextGroup: string; | ||
/** | ||
* The context object | ||
*/ | ||
context: object; | ||
/** | ||
* The source of the context | ||
*/ | ||
source: Source; | ||
}; |
{ | ||
"name": "@openfin/cloud-interop-core-api", | ||
"version": "0.0.1-alpha.e6793f0", | ||
"version": "0.0.1-alpha.fba3468", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
469172
5198