Returns the state after a NATS client status event.
disconnect and reconnecting mean the client is trying to get the server back;
reconnect means it did. close means it gave up or was closed. Other events
(ping, update, ldm, error, ...) leave the state as it is. Before the page has
subscribed (connecting) a reconnect does not claim connected.
Returns the state after a NATS client status event.
disconnectandreconnectingmean the client is trying to get the server back;reconnectmeans it did.closemeans it gave up or was closed. Other events (ping,update,ldm,error, ...) leave the state as it is. Before the page has subscribed (connecting) areconnectdoes not claimconnected.