Class WebSocketServer


  • public class WebSocketServer
    extends java.lang.Object
    The Web Socket Server of iiziGo inside Eclipse.
    Author:
    Christopher Mindus
    • Method Detail

      • getInstance

        public static WebSocketServer getInstance()
                                           throws java.lang.Exception
        Gets the instance of the Web Socket Server.
        Throws:
        java.lang.Exception - For start errors.
      • getWorker

        public static Worker getWorker​(java.lang.Runnable startedCallback)
                                throws java.io.IOException
        Gets the worker instance.
        Parameters:
        startedCallback - Callback for started, null for none.
        Throws:
        java.io.IOException
      • isStarted

        public static boolean isStarted()
        Checks if the server is started.
      • registerTransactionProcessor

        public static java.lang.String registerTransactionProcessor​(PanelEditorTransactionProcessor listener)
        Registers a transaction processor used for device connections.
        Parameters:
        listener - The listener for new connections.
        Returns:
        The host name and port for the browser, null for already registered or cannot start web socket.
      • unregisterTransactionProcessor

        public static void unregisterTransactionProcessor​(PanelEditorTransactionProcessor listener)
        Unregisters a transaction processor used for device connections.
      • dispose

        public void dispose()
        Dispose of the server.