core/realtime/realtime-subject.service.ts
Service (providedIn root) that ensures to only create a single realtime subscription for each channel
Properties |
Methods |
|
constructor(realtime: Realtime)
|
||||||
Parameters :
|
Protected createObservableForChannel | |||||||||
createObservableForChannel(channel: string, realtime: Realtime)
|
|||||||||
Type parameters :
|
|||||||||
Parameters :
Returns :
Observable<RealtimeMessage<T>>
|
Protected createObservableForConnectionStatus |
createObservableForConnectionStatus()
|
Returns :
any
|
Protected createObservableForReconnect |
createObservableForReconnect()
|
Returns :
any
|
getObservableForChannel | ||||||
getObservableForChannel(channel: string)
|
||||||
Type parameters :
|
||||||
Parameters :
Returns :
Observable<RealtimeMessage<T>>
|
connectionStatus$ |
Type : Observable<"connected" | "disconnected">
|
reconnect$ |
Type : Observable<void>
|