src/app/component/websocket/websocket.service.ts
Properties |
|
Methods |
|
constructor(wsConfig: WebSocketConfig)
|
||||||
Parameters :
|
Private connect |
connect()
|
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
Public on | ||||||
on(event: string)
|
||||||
Type parameters :
|
||||||
Parameters :
Returns :
Observable<T>
|
Private reconnect |
reconnect()
|
Returns :
void
|
Public send |
send(event: string, data: any)
|
Returns :
void
|
Private config |
Type : WebSocketSubjectConfig<IWsMessage<any>>
|
Private connection$ |
Type : Observer<boolean>
|
Private isConnected |
Type : boolean
|
Private reconnectAttempts |
Type : number
|
Private reconnectInterval |
Type : number
|
Private reconnection$ |
Type : Observable<number>
|
Public status |
Type : Observable<boolean>
|
Private statusSub |
Type : SubscriptionLike
|
Private websocket$ |
Type : WebSocketSubject<IWsMessage<any>>
|
Private websocketSub |
Type : SubscriptionLike
|
Private wsMessages$ |
Type : Subject<IWsMessage<any>>
|