Class WebSocketHealth

java.lang.Object
net.targetr.rc.monitoring.health.WebSocketHealth

public class WebSocketHealth extends Object
Continuously streams server host to a WebSocket.
Author:
Dr Michael Gardiner
  • Constructor Details

    • WebSocketHealth

      public WebSocketHealth(HttpRequest httpReq)
      Constructs a new handler to stream health information via WebSocket.
      Parameters:
      httpReq - the incoming upgrade request
  • Method Details

    • generateResponse

      public HttpResponse generateResponse() throws IOException
      Initiates the WebSocket upgrade response.
      Returns:
      the WebSocket response
      Throws:
      IOException - if an error occurs during upgrade