Class WebSocketServer

java.lang.Object
com.iizigo.comm.WebSocketServer

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

    • getInstance

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

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

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

      public static 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.
    • getPanelEditors

      public static PanelEditorTransactionProcessor[] getPanelEditors()
      Gets the list of available panel editors.
    • dispose

      public void dispose()
      Dispose of the server.