core/realtime/measurement-realtime.service.ts
Methods |
|
constructor(realtimeSubject: RealtimeSubjectService, measurementService: MeasurementService)
|
|||||||||
Parameters :
|
Protected channel |
channel()
|
Returns :
string
|
Protected lastMeasurement$ | ||||||||||||||||||||||||
lastMeasurement$(fragment: string, series: string, entityOrId: string | number | IIdentified, pageSize: number, emitNullIfInitialValuesWereNotFound)
|
||||||||||||||||||||||||
Parameters :
Returns :
any
|
latestValueOfSpecificMeasurement$ | ||||||||||||||||||||||||||||||
latestValueOfSpecificMeasurement$(fragment: string, series: string, entityOrId: string | number | IIdentified, pageSize: number, emitNullIfInitialValuesWereNotFound)
|
||||||||||||||||||||||||||||||
Get an Observable of all measurements filtered by fragment and series. Combines the latest value from measurement API and future values via realtime API.
Parameters :
Returns :
any
An [[Observable]] of newly created entity objects. |
onCreateOfSpecificMeasurement$ | ||||||||||||||||
onCreateOfSpecificMeasurement$(fragment: string, series: string, entityOrId?: string | number | IIdentified)
|
||||||||||||||||
Get an Observable of all measurements filtered by fragment and series.
Parameters :
Returns :
Observable<IMeasurement>
An [[Observable]] of newly created entity objects. |
Protected getChannel | ||||||
getChannel(entityOrId?: string | number | IIdentified)
|
||||||
Parameters :
Returns :
any
|
Protected getIdString | ||||||
getIdString(reference: number | string | IIdentified)
|
||||||
Parameters :
Returns :
string
|
onAll$ | ||||||||
onAll$(entityOrId?: string | number | IIdentified)
|
||||||||
Get an Observable of all realtime notifications.
Parameters :
Returns :
Observable<RealtimeMessage<T>>
An [[Observable]] of notifications wrapped as [[RealtimeMessage]] |
onDelete$ | ||||||||
onDelete$(entityOrId?: string | number | IIdentified)
|
||||||||
Get an Observable of all DELETE realtime notifications.
Parameters :
Returns :
Observable<number>
An [[Observable]] of deleted entity objects. |
onUpdate$ | ||||||||
onUpdate$(entityOrId?: string | number | IIdentified)
|
||||||||
Get an Observable of all UPDATE realtime notifications.
Parameters :
Returns :
Observable<T>
An [[Observable]] of updated entity objects. |
start |
start()
|
Subscribes again all realtime channels with active observers.
Returns :
void
|
stop |
stop()
|
Stops realtime notifications and unsubscribes all realtime channels.
Returns :
void
|