How can I check session is connected or not (is session active/connected)? in solclientjs

prashantk2000
Mon, 27 Feb 2023 14:48:02 +0000
Solace Event Broker

Hi All,
I do have few queries regarding the session lifespan in solclientjs lib.
How can I check (periodically) session is active/connected or not? When connected using oauth2 and as soon as token expires then I see the session get disconnected, how does the client application get notified for disconnection instantly? I see it does reconnect for number of reconnect retries, is there any way that client can be notified instantly? Thanks
Prashant

5 posts - 1 participant