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.
The WebSocket state (graphql-ws) is the ONLY signal that clears the warning. When the socket emits 'disconnected' we poll /healthcheck, but a 200 there only triggers a reconnect attempt — it never reports connectivity as restored on its own. HTTP reachability and socket liveness are different properties, and trusting the first for the second is the defect behind MJ #4222.
'unknown' (no active socket — either never opened or cleanly disposed) is treated as healthy: absence of signal is not a signal of failure.