healthCheck
Performs a health check to verify the status of the remote feature messaging service.
This method checks the availability and responsiveness of the service the client is connected to by making a health check request. It is intended to ensure that the remote service is operational and ready to handle requests. The health check may involve a lightweight request to a designated health check endpoint.
This operation is asynchronous and may suspend until the health check completes. If the health check fails, an exception may be thrown to indicate the failure.
It is recommended to perform a health check periodically, especially in scenarios with prolonged idle connections or before critical operations, to guarantee the remote service is in a healthy state.