Class CalibrationSocket


  • public class CalibrationSocket
    extends WebSocket
    WebSocket class for providing real-time calibration updates.
    • Constructor Detail

      • CalibrationSocket

        public CalibrationSocket()
    • Method Detail

      • update

        public static void update​(int progress,
                                  String message)
        Sends a progress update in all sessions.
        Parameters:
        progress - the new progress (0 to 100)
        message - the message for the progress update
      • onOpen

        public void onOpen​(javax.websocket.Session session,
                           javax.websocket.EndpointConfig config)
        Called when a socket is opened.
        Parameters:
        session - the session of the socket
        config - the endpoint configuration
      • onClose

        public void onClose​(javax.websocket.Session session,
                            javax.websocket.CloseReason reason)
        Called when a socket is closed.
        Parameters:
        session - the session of the socket
        reason - the close reason
      • onMessage

        public void onMessage​(String message,
                              javax.websocket.Session session)
        Called when a message is received.
        Parameters:
        message - the message
        session - the session of the socket
      • onError

        public void onError​(javax.websocket.Session session,
                            Throwable t)
        Called when an error occurred.
        Parameters:
        session - the session of the socket
        t - a description of the error