isConnected$
isConnected$
Observable that emits when the connection state changes.
It emits true when connect()
succeeds and false when the client disconnects: on
disconnect(), or when the
server refuses the credential on a reconnect and the SDK stops retrying. It stays
true while the SDK reconnects automatically after a dropped socket. To track
those reconnects, use ready$.
isConnected
Whether the client is currently connected.