File

core/realtime/realtime-subject.service.ts

Description

Service (providedIn root) that ensures to only create a single realtime subscription for each channel

Index

Properties
Methods

Constructor

constructor(realtime: Realtime)
Parameters :
Name Type Optional
realtime Realtime No

Methods

Protected createObservableForChannel
createObservableForChannel(channel: string, realtime: Realtime)
Type parameters :
  • T
Parameters :
Name Type Optional
channel string No
realtime Realtime No
Protected createObservableForConnectionStatus
createObservableForConnectionStatus()
Returns : any
Protected createObservableForReconnect
createObservableForReconnect()
Returns : any
getObservableForChannel
getObservableForChannel(channel: string)
Type parameters :
  • T
Parameters :
Name Type Optional
channel string No

Properties

connectionStatus$
Type : Observable<"connected" | "disconnected">
reconnect$
Type : Observable<void>

results matching ""

    No results matching ""