Synchronous getter for the current connectivity state
Force an immediate health check and return the result
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
Begin monitoring connectivity. Subscribes to the graphql-ws socket state and only polls /healthcheck while the socket reports 'disconnected'.
Stop monitoring and clean up resources
Monitors MJAPI connectivity.
Primary signal is the GraphQLDataProvider's WebSocket state (graphql-ws). When the socket emits 'disconnected' (retries already exhausted by graphql-ws), we fall back to polling /healthcheck until it returns 200, then force a socket reconnect so the next subscription picks up a fresh client.
'unknown' (no active socket — either never opened or cleanly disposed) is treated as healthy: absence of signal is not a signal of failure.