Class ClientWebSocketHandler

java.lang.Object
net.targetr.rc.client.ClientWebSocketHandler
All Implemented Interfaces:
SocketExceptionHandler

public class ClientWebSocketHandler extends Object implements SocketExceptionHandler
Communicates with a client using a WebSocket.
Author:
Dr Michael Gardiner
  • Field Details

    • TIMEOUT

      public static final int TIMEOUT
      WebSocket connection timeout in milliseconds.
      See Also:
    • IDLE_PERIOD

      public static final long IDLE_PERIOD
      Maximum idle period before checking connection status.
      See Also:
    • clientCount

      public static final AtomicInteger clientCount
      Counter for connected clients.
  • Constructor Details

    • ClientWebSocketHandler

      public ClientWebSocketHandler(HttpRequest httpReq)
      Constructs a new WebSocket handler for the given request.
      Parameters:
      httpReq - the incoming HTTP upgrade request
  • Method Details